iQQ.Net.WebQQCore.Im.Bean.QQClientTypeInfo.ValueOfRaw C# (CSharp) Method

ValueOfRaw() public static method

public static ValueOfRaw ( int i ) : iQQ.Net.WebQQCore.Im.Bean.QQClientType
i int
return iQQ.Net.WebQQCore.Im.Bean.QQClientType
        public static QQClientType ValueOfRaw(int i)
        {
            switch (i)
            {
                case 1:
                case 2:
                case 3:
                case 4:
                case 5:
                case 6:
                case 10:
                case 0x1E4:
                return QQClientType.PcQQ;

                case 41:
                return QQClientType.WebQQ;

                case 21:
                case 22:
                case 23:
                case 24:
                return QQClientType.MobileQQ;

                case 42:
                return QQClientType.PadQQ;

                default:
                return QQClientType.Unknown;
            }
        }

Same methods

QQClientTypeInfo::ValueOfRaw ( string value ) : iQQ.Net.WebQQCore.Im.Bean.QQClientType

Usage Example

Ejemplo n.º 1
0
 public void ParseFromJson(JObject json)
 {
     Occupation    = json["occupation"].ToString();
     Phone         = json["phone"].ToString();
     Allow         = (QQAllow)json["allow"].ToObject <int>();
     College       = json["college"].ToString();
     Uin           = json["uin"].ToObject <long>();
     Constel       = json["constel"].ToObject <int>();
     Blood         = json["blood"].ToObject <int>();
     Homepage      = json["homepage"].ToString();
     Stat          = json["stat"].ToObject <int>();
     VipLevel      = json["vip_info"].ToObject <int>(); // VIP等级 0为非VIP
     Country       = json["country"].ToString();
     City          = json["city"].ToString();
     Personal      = json["personal"].ToString();
     Nickname      = json["nick"].ToString();
     ChineseZodiac = json["shengxiao"].ToObject <int>();
     Email         = json["vip_info"].ToString();
     Province      = json["province"].ToString();
     Gender        = json["gender"].ToString();
     Mobile        = json["mobile"].ToString();
     if (json["reg_time"] != null)
     {
         RegTime = json["reg_time"].ToObject <int>();
     }
     if (json["client_type"] != null)
     {
         ClientType = QQClientTypeInfo.ValueOfRaw(json["client_type"].ToObject <int>());
     }
     if (json["birthday"] != null)
     {
         Birthday = DateUtils.Parse(json["birthday"].ToObject <JObject>());
     }
 }
QQClientTypeInfo