📄 vcard.cs
字号:
if ((value.Trim().Length > 0) & !this.x.h(value))
{
this.j = "";
this.x.a(0x1f49L, "Invalid characters in title", "VCARD");
}
this.a();
}
}
public string mCore.IvCard.LastName
{
get
{
this.x.av();
return this.h;
}
set
{
this.x.av();
if (value == null)
{
value = "";
}
this.h = value.Trim();
if ((value.Trim().Length > 0) & !this.x.h(value))
{
this.h = "";
this.x.a(0x1f44L, "Invalid characters in last name", "VCARD");
}
this.a();
}
}
public string mCore.IvCard.MiddleName
{
get
{
this.x.av();
return this.g;
}
set
{
this.x.av();
if (value == null)
{
value = "";
}
this.g = value.Trim();
if ((value.Trim().Length > 0) & !this.x.h(value))
{
this.g = "";
this.x.a(0x1f43L, "Invalid characters in middle name", "VCARD");
}
this.a();
}
}
public string mCore.IvCard.MobilePhone
{
get
{
this.x.av();
return this.d;
}
set
{
this.x.av();
if (value == null)
{
value = "";
}
this.d = value.Trim();
if ((this.d.Trim().Length > 0) & (!this.x.j(this.d) & !this.x.f(this.d)))
{
this.d = "";
this.x.a(0x1f47L, "Invalid characters in mobile phone number", "VCARD");
}
this.a();
}
}
public string mCore.IvCard.URL
{
get
{
this.x.av();
return this.i;
}
set
{
this.x.av();
if (value == null)
{
value = "";
}
this.i = value.Trim();
this.a();
}
}
public string MiddleName
{
get
{
this.x.av();
return this.g;
}
set
{
this.x.av();
if (value == null)
{
value = "";
}
this.g = value.Trim();
if ((value.Trim().Length > 0) & !this.x.h(value))
{
this.g = "";
this.x.a(0x1f43L, "Invalid characters in middle name", "VCARD");
}
this.a();
}
}
public string MobilePhone
{
get
{
this.x.av();
return this.d;
}
set
{
this.x.av();
if (value == null)
{
value = "";
}
this.d = value.Trim();
if ((this.d.Trim().Length > 0) & (!this.x.j(this.d) & !this.x.f(this.d)))
{
this.d = "";
this.x.a(0x1f47L, "Invalid characters in mobile phone number", "VCARD");
}
this.a();
}
}
public string URL
{
get
{
this.x.av();
return this.i;
}
set
{
this.x.av();
if (value == null)
{
value = "";
}
this.i = value.Trim();
this.a();
}
}
private class a
{
private f a;
internal bool aa = false;
internal int ab;
internal string ac = "";
internal string ad;
private SMS b;
private string c = "";
private string d = "";
private string e = "";
private string f = "";
private string g = "";
private string h = "";
private string i = "";
private string j = "";
private string k = "";
private string l = "";
private string m = "";
private string n = "";
private string o = "";
private string p = "";
private string q = "";
private string r = "";
private string s = "";
private string t = "";
private string u = "";
private string v = "";
private string w = "";
private string x = "";
private int y;
private bool z = false;
internal a(ref SMS A_0, string A_1, string A_2, string A_3, string A_4, string A_5, string A_6, string A_7, string A_8, string A_9, string A_10, string A_11, string A_12, string A_13, string A_14, string A_15, string A_16, string A_17, string A_18, string A_19, string A_20, string A_21, string A_22, string A_23, int A_24, bool A_25)
{
this.b = A_0;
this.a = this.b.gm;
this.c = A_1;
this.d = A_5 + A_23;
this.e = A_6 + A_23;
this.f = A_7 + A_23;
this.g = A_9;
this.h = A_2;
this.i = A_3;
this.j = A_4;
this.k = A_8;
this.l = A_10;
this.m = A_11;
this.n = A_12;
this.o = A_13;
this.p = A_14;
this.q = A_15;
this.r = A_16;
this.s = A_17;
this.t = A_18;
this.u = A_19;
this.v = A_20;
this.w = A_21;
this.x = A_22;
this.y = A_24;
this.z = A_25;
}
private string a()
{
string str3 = "";
string str2 = "";
str3 = "N:";
if (this.i.Length > 0)
{
if (this.j.Length > 0)
{
str3 = str3 + this.i + " " + this.j + ";";
}
else
{
str3 = str3 + this.i + ";";
}
}
else
{
str3 = str3 + this.j + ";";
}
str3 = str3 + this.h;
if (this.d.Length > 0)
{
str3 = str3 + "\r\nTEL;HOME:" + this.d;
}
if (this.e.Length > 0)
{
str3 = str3 + "\r\nTEL;WORK:" + this.e;
}
if (this.f.Length > 0)
{
str3 = str3 + "\r\nTEL;CELL:" + this.f;
}
if (this.g.Length > 0)
{
str3 = str3 + "\r\nEMAIL;INTERNET:" + this.g;
}
if (this.k.Length > 0)
{
str3 = str3 + "\r\nURL:" + this.k;
}
if (this.m.Trim().Length > 0)
{
str3 = str3 + "\r\nORG:" + this.m;
}
if (this.l.Trim().Length > 0)
{
str3 = str3 + "\r\nTITLE:" + this.l;
}
if (((((this.n.Trim().Length > 0) | (this.o.Trim().Length > 0)) | (this.p.Trim().Length > 0)) | (this.q.Trim().Length > 0)) | (this.r.Trim().Length > 0))
{
str2 = ";;" + this.n + ";" + this.o + ";" + this.p + ";" + this.q + ";" + this.r;
str3 = str3 + "\r\nADR;HOME;ENCODING=QUOTED-PRINTABLE:" + this.a.k(str2);
}
if (((((this.s.Trim().Length > 0) | (this.t.Trim().Length > 0)) | (this.u.Trim().Length > 0)) | (this.v.Trim().Length > 0)) | (this.w.Trim().Length > 0))
{
str2 = ";;" + this.s + ";" + this.t + ";" + this.u + ";" + this.v + ";" + this.w;
str3 = str3 + "\r\nADR;WORK;ENCODING=QUOTED-PRINTABLE:" + this.a.k(str2);
}
if (this.x.Trim().Length > 0)
{
str3 = str3 + "\r\nNOTE;ENCODING=QUOTED-PRINTABLE:" + this.a.k(this.x);
}
if (str3.Length <= 0)
{
return str3;
}
return ("BEGIN:VCARD\r\nVERSION:2.1\r\n" + str3 + "\r\nEND:VCARD\r\n");
}
internal void b()
{
if (Monitor.TryEnter(this.a, this.a.@as))
{
string str = "";
bool flag = false;
string str2 = "";
try
{
this.a.av();
if (!this.a.af)
{
this.b.q.a(true);
}
if (this.a.ah == this.a.b9)
{
this.a.a(0x1f56L, this.a.l("odumu5VOg_:5-26cCP/GtqPa6g$"), "VCARD");
this.aa = false;
}
else if (this.c.Length <= 0)
{
this.a.a(0x1f57L, "Destination mobile number not defined", "VCARD");
this.aa = false;
}
else if (((this.h.Length <= 0) & (this.j.Length <= 0)) & (this.i.Length <= 0))
{
this.a.a(0x1f58L, "Contact name is not defined", "VCARD");
this.aa = false;
}
else if ((((this.d.Length <= 0) & (this.e.Length <= 0)) & (this.f.Length <= 0)) & (this.g.Length <= 0))
{
this.a.a(0x1f59L, "Contact phone not defined", "VCARD");
this.aa = false;
}
else
{
str = this.a();
if (str.Length <= 0)
{
this.aa = false;
}
else
{
str2 = this.a.a(str, this.c, this.y, this.z);
if (str2.Trim().Length <= 0)
{
if ((this.a.b2 == 0L) && (this.a.z == 0L))
{
this.a.b2 = 0x1f5aL;
this.a.b1 = "vCard send error";
}
if (this.a.b2 > 0L)
{
this.a.a(this.a.b2, this.a.b1, "VCARD");
}
}
else
{
flag = true;
}
this.aa = flag;
this.ad = str2;
}
}
}
catch (Exception exception1)
{
ProjectData.SetProjectError(exception1);
Exception exception = exception1;
this.b.r.b("[vCard:Send_Class:Send:1] " + exception.Message);
ProjectData.ClearProjectError();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -