public async Task<StatusData<string>> UpdateBasicContactPerson(BasicContactPersonWebRequest request, SystemSession session)
        {
            var serviceRequest = new UserInfoPerson
            {
                UserId = session.UserName,
                FirstName = request.FirstName,
                LastName = request.LastName,
                BirthDate = request.BirthDate.ToString(),
                ReligionId = new Religion { Name = request.Religion },
                Nationality = new Nationality { Name = request.Nationality },
                Interests = request.Interests,
                Title = request.Title,
                RelationshipStatusId = new RelationshipStatus { RelationshipStatusId = (int)request.RelationshipStatusId },
                Gender = ((byte)request.Gender).ToString()
            };

            var response =
                (await
                    Task.Factory.StartNew(
                        () => Client.UserService.setBasicContactPersion(serviceRequest, session.GetSession()))
                        .ConfigureAwait(false)).GetStatusData<string>();
            return response;
        }
Beispiel #2
0
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("UserContactSettings(");
            bool          __first = true;

            if (__isset.userId)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UserId: ");
                __sb.Append(UserId);
            }
            if (__isset.fieldId)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("FieldId: ");
                __sb.Append(FieldId);
            }
            if (__isset.contactChatNetworkId)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("ContactChatNetworkId: ");
                __sb.Append(ContactChatNetworkId);
            }
            if (__isset.@value)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Value: ");
                __sb.Append(Value);
            }
            if (__isset.mode)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Mode: ");
                __sb.Append(Mode);
            }
            if (__isset.contactCustomId)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("ContactCustomId: ");
                __sb.Append(ContactCustomId);
            }
            if (__isset.contactId)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("ContactId: ");
                __sb.Append(ContactId);
            }
            if (EntriesInPage != null && __isset.entriesInPage)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("EntriesInPage: ");
                __sb.Append(EntriesInPage);
            }
            if (EntryList != null && __isset.entryList)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("EntryList: ");
                __sb.Append(EntryList);
            }
            if (__isset.isDefault)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("IsDefault: ");
                __sb.Append(IsDefault);
            }
            if (__isset.isBasicPrimary)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("IsBasicPrimary: ");
                __sb.Append(IsBasicPrimary);
            }
            if (UserInfo != null && __isset.userInfo)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UserInfo: ");
                __sb.Append(UserInfo == null ? "<null>" : UserInfo.ToString());
            }
            if (UserInfoPerson != null && __isset.userInfoPerson)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UserInfoPerson: ");
                __sb.Append(UserInfoPerson == null ? "<null>" : UserInfoPerson.ToString());
            }
            if (User != null && __isset.user)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("User: "******"<null>" : User.ToString());
            }
            if (UserCategory != null && __isset.userCategory)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UserCategory: ");
                __sb.Append(UserCategory == null ? "<null>" : UserCategory.ToString());
            }
            __sb.Append(")");
            return(__sb.ToString());
        }
Beispiel #3
0
        public void Write(TProtocol oprot)
        {
            TStruct struc = new TStruct("UserContactSettings");

            oprot.WriteStructBegin(struc);
            TField field = new TField();

            if (__isset.userId)
            {
                field.Name = "userId";
                field.Type = TType.I32;
                field.ID   = 1;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(UserId);
                oprot.WriteFieldEnd();
            }
            if (__isset.fieldId)
            {
                field.Name = "fieldId";
                field.Type = TType.I32;
                field.ID   = 2;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(FieldId);
                oprot.WriteFieldEnd();
            }
            if (__isset.contactChatNetworkId)
            {
                field.Name = "contactChatNetworkId";
                field.Type = TType.I32;
                field.ID   = 3;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(ContactChatNetworkId);
                oprot.WriteFieldEnd();
            }
            if (__isset.@value)
            {
                field.Name = "value";
                field.Type = TType.I32;
                field.ID   = 4;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(Value);
                oprot.WriteFieldEnd();
            }
            if (__isset.mode)
            {
                field.Name = "mode";
                field.Type = TType.I16;
                field.ID   = 5;
                oprot.WriteFieldBegin(field);
                oprot.WriteI16(Mode);
                oprot.WriteFieldEnd();
            }
            if (__isset.contactCustomId)
            {
                field.Name = "contactCustomId";
                field.Type = TType.I64;
                field.ID   = 6;
                oprot.WriteFieldBegin(field);
                oprot.WriteI64(ContactCustomId);
                oprot.WriteFieldEnd();
            }
            if (__isset.contactId)
            {
                field.Name = "contactId";
                field.Type = TType.I64;
                field.ID   = 7;
                oprot.WriteFieldBegin(field);
                oprot.WriteI64(ContactId);
                oprot.WriteFieldEnd();
            }
            if (EntriesInPage != null && __isset.entriesInPage)
            {
                field.Name = "entriesInPage";
                field.Type = TType.String;
                field.ID   = 8;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(EntriesInPage);
                oprot.WriteFieldEnd();
            }
            if (EntryList != null && __isset.entryList)
            {
                field.Name = "entryList";
                field.Type = TType.String;
                field.ID   = 9;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(EntryList);
                oprot.WriteFieldEnd();
            }
            if (__isset.isDefault)
            {
                field.Name = "isDefault";
                field.Type = TType.Bool;
                field.ID   = 10;
                oprot.WriteFieldBegin(field);
                oprot.WriteBool(IsDefault);
                oprot.WriteFieldEnd();
            }
            if (__isset.isBasicPrimary)
            {
                field.Name = "isBasicPrimary";
                field.Type = TType.Bool;
                field.ID   = 11;
                oprot.WriteFieldBegin(field);
                oprot.WriteBool(IsBasicPrimary);
                oprot.WriteFieldEnd();
            }
            if (UserInfo != null && __isset.userInfo)
            {
                field.Name = "userInfo";
                field.Type = TType.Struct;
                field.ID   = 12;
                oprot.WriteFieldBegin(field);
                UserInfo.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (UserInfoPerson != null && __isset.userInfoPerson)
            {
                field.Name = "userInfoPerson";
                field.Type = TType.Struct;
                field.ID   = 13;
                oprot.WriteFieldBegin(field);
                UserInfoPerson.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (User != null && __isset.user)
            {
                field.Name = "user";
                field.Type = TType.Struct;
                field.ID   = 14;
                oprot.WriteFieldBegin(field);
                User.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (UserCategory != null && __isset.userCategory)
            {
                field.Name = "userCategory";
                field.Type = TType.Struct;
                field.ID   = 15;
                oprot.WriteFieldBegin(field);
                UserCategory.Write(oprot);
                oprot.WriteFieldEnd();
            }
            oprot.WriteFieldStop();
            oprot.WriteStructEnd();
        }
Beispiel #4
0
        public void Read(TProtocol iprot)
        {
            TField field;

            iprot.ReadStructBegin();
            while (true)
            {
                field = iprot.ReadFieldBegin();
                if (field.Type == TType.Stop)
                {
                    break;
                }
                switch (field.ID)
                {
                case 1:
                    if (field.Type == TType.I32)
                    {
                        UserId = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 2:
                    if (field.Type == TType.I32)
                    {
                        FieldId = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 3:
                    if (field.Type == TType.I32)
                    {
                        ContactChatNetworkId = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 4:
                    if (field.Type == TType.I32)
                    {
                        Value = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 5:
                    if (field.Type == TType.I16)
                    {
                        Mode = iprot.ReadI16();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 6:
                    if (field.Type == TType.I64)
                    {
                        ContactCustomId = iprot.ReadI64();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 7:
                    if (field.Type == TType.I64)
                    {
                        ContactId = iprot.ReadI64();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 8:
                    if (field.Type == TType.String)
                    {
                        EntriesInPage = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 9:
                    if (field.Type == TType.String)
                    {
                        EntryList = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 10:
                    if (field.Type == TType.Bool)
                    {
                        IsDefault = iprot.ReadBool();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 11:
                    if (field.Type == TType.Bool)
                    {
                        IsBasicPrimary = iprot.ReadBool();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 12:
                    if (field.Type == TType.Struct)
                    {
                        UserInfo = new UserInfo();
                        UserInfo.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 13:
                    if (field.Type == TType.Struct)
                    {
                        UserInfoPerson = new UserInfoPerson();
                        UserInfoPerson.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 14:
                    if (field.Type == TType.Struct)
                    {
                        User = new User();
                        User.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 15:
                    if (field.Type == TType.Struct)
                    {
                        UserCategory = new UserCategory();
                        UserCategory.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
        public virtual async Task<StatusData<string>> UpdateBasicContactPerson(BasicContactPersonRequest request,
            SystemSession session)
        {
            var serviceRequest = new UserInfoPerson
            {
                UserId = session.UserName,
                FirstName = request.FirstName,
                LastName = request.LastName,
                // BirthDate = request.BirthDate.ToString(),
                //  ReligionId = new Religion { ReligionId = Convert.ToInt64(request.Religion) },
                //   Nationality = new Nationality { Name = request.Nationality },
                // Interests = request.Interests,
                Title = request.Title
                // RelationshipStatusId = new RelationshipStatus { RelationshipStatusId = request.RelationshipStatusId },
                // Gender = request.Gender.ToString()
            };

            var response =
                (await
                    Task.Factory.StartNew(
                        () => Client.UserService.setBasicContactPersion(serviceRequest, session.GetSession()))
                        .ConfigureAwait(false)).GetStatusData<string>();
            return response;
        }
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.I32) {
           UserId = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.I32) {
           FieldId = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 3:
         if (field.Type == TType.I32) {
           ContactChatNetworkId = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 4:
         if (field.Type == TType.I32) {
           Value = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 5:
         if (field.Type == TType.I16) {
           Mode = iprot.ReadI16();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 6:
         if (field.Type == TType.I64) {
           ContactCustomId = iprot.ReadI64();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 7:
         if (field.Type == TType.I64) {
           ContactId = iprot.ReadI64();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 8:
         if (field.Type == TType.String) {
           EntriesInPage = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 9:
         if (field.Type == TType.String) {
           EntryList = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 10:
         if (field.Type == TType.Bool) {
           IsDefault = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 11:
         if (field.Type == TType.Bool) {
           IsBasicPrimary = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 12:
         if (field.Type == TType.Struct) {
           UserInfo = new UserInfo();
           UserInfo.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 13:
         if (field.Type == TType.Struct) {
           UserInfoPerson = new UserInfoPerson();
           UserInfoPerson.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 14:
         if (field.Type == TType.Struct) {
           User = new User();
           User.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 15:
         if (field.Type == TType.Struct) {
           UserCategory = new UserCategory();
           UserCategory.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
 public IAsyncResult Begin_setBasicContactPersion(AsyncCallback callback, object state, UserInfoPerson userinfo, Session session)
 {
   return send_setBasicContactPersion(callback, state, userinfo, session);
 }
Beispiel #8
0
        public void Write(TProtocol oprot)
        {
            TStruct struc = new TStruct("User");

            oprot.WriteStructBegin(struc);
            TField field = new TField();

            if (UserId != null && __isset.userId)
            {
                field.Name = "userId";
                field.Type = TType.String;
                field.ID   = 1;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(UserId);
                oprot.WriteFieldEnd();
            }
            if (Email != null && __isset.email)
            {
                field.Name = "email";
                field.Type = TType.String;
                field.ID   = 2;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(Email);
                oprot.WriteFieldEnd();
            }
            if (UserName != null && __isset.userName)
            {
                field.Name = "userName";
                field.Type = TType.String;
                field.ID   = 3;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(UserName);
                oprot.WriteFieldEnd();
            }
            if (Password != null && __isset.password)
            {
                field.Name = "password";
                field.Type = TType.String;
                field.ID   = 4;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(Password);
                oprot.WriteFieldEnd();
            }
            if (LastActivityDate != null && __isset.lastActivityDate)
            {
                field.Name = "lastActivityDate";
                field.Type = TType.String;
                field.ID   = 5;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(LastActivityDate);
                oprot.WriteFieldEnd();
            }
            if (PrimaryContactNumber != null && __isset.primaryContactNumber)
            {
                field.Name = "primaryContactNumber";
                field.Type = TType.String;
                field.ID   = 6;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(PrimaryContactNumber);
                oprot.WriteFieldEnd();
            }
            if (__isset.isApproved)
            {
                field.Name = "isApproved";
                field.Type = TType.Bool;
                field.ID   = 7;
                oprot.WriteFieldBegin(field);
                oprot.WriteBool(IsApproved);
                oprot.WriteFieldEnd();
            }
            if (__isset.isLockedOut)
            {
                field.Name = "isLockedOut";
                field.Type = TType.Bool;
                field.ID   = 8;
                oprot.WriteFieldBegin(field);
                oprot.WriteBool(IsLockedOut);
                oprot.WriteFieldEnd();
            }
            if (__isset.isActivated)
            {
                field.Name = "isActivated";
                field.Type = TType.Bool;
                field.ID   = 9;
                oprot.WriteFieldBegin(field);
                oprot.WriteBool(IsActivated);
                oprot.WriteFieldEnd();
            }
            if (CreateDate != null && __isset.createDate)
            {
                field.Name = "createDate";
                field.Type = TType.String;
                field.ID   = 10;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(CreateDate);
                oprot.WriteFieldEnd();
            }
            if (LastLoginDate != null && __isset.lastLoginDate)
            {
                field.Name = "lastLoginDate";
                field.Type = TType.String;
                field.ID   = 11;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(LastLoginDate);
                oprot.WriteFieldEnd();
            }
            if (LastPasswordChangedDate != null && __isset.lastPasswordChangedDate)
            {
                field.Name = "lastPasswordChangedDate";
                field.Type = TType.String;
                field.ID   = 12;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(LastPasswordChangedDate);
                oprot.WriteFieldEnd();
            }
            if (LastLockoutDate != null && __isset.lastLockoutDate)
            {
                field.Name = "lastLockoutDate";
                field.Type = TType.String;
                field.ID   = 13;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(LastLockoutDate);
                oprot.WriteFieldEnd();
            }
            if (__isset.failedPasswordAttemptCount)
            {
                field.Name = "failedPasswordAttemptCount";
                field.Type = TType.I32;
                field.ID   = 14;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(FailedPasswordAttemptCount);
                oprot.WriteFieldEnd();
            }
            if (__isset.isFirstLogin)
            {
                field.Name = "isFirstLogin";
                field.Type = TType.Bool;
                field.ID   = 15;
                oprot.WriteFieldBegin(field);
                oprot.WriteBool(IsFirstLogin);
                oprot.WriteFieldEnd();
            }
            if (CTag != null && __isset.cTag)
            {
                field.Name = "cTag";
                field.Type = TType.String;
                field.ID   = 16;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(CTag);
                oprot.WriteFieldEnd();
            }
            if (__isset.hasDeactivated)
            {
                field.Name = "hasDeactivated";
                field.Type = TType.Bool;
                field.ID   = 17;
                oprot.WriteFieldBegin(field);
                oprot.WriteBool(HasDeactivated);
                oprot.WriteFieldEnd();
            }
            if (__isset.chatStatus)
            {
                field.Name = "chatStatus";
                field.Type = TType.I32;
                field.ID   = 18;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(ChatStatus);
                oprot.WriteFieldEnd();
            }
            if (UserInfo != null && __isset.userInfo)
            {
                field.Name = "userInfo";
                field.Type = TType.Struct;
                field.ID   = 19;
                oprot.WriteFieldBegin(field);
                UserInfo.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (UserInfoPerson != null && __isset.userInfoPerson)
            {
                field.Name = "userInfoPerson";
                field.Type = TType.Struct;
                field.ID   = 20;
                oprot.WriteFieldBegin(field);
                UserInfoPerson.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (UserCategory != null && __isset.userCategory)
            {
                field.Name = "userCategory";
                field.Type = TType.Struct;
                field.ID   = 21;
                oprot.WriteFieldBegin(field);
                UserCategory.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (Contact != null && __isset.contact)
            {
                field.Name = "contact";
                field.Type = TType.Struct;
                field.ID   = 22;
                oprot.WriteFieldBegin(field);
                Contact.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (Status != null && __isset.status)
            {
                field.Name = "status";
                field.Type = TType.Struct;
                field.ID   = 23;
                oprot.WriteFieldBegin(field);
                Status.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (Session != null && __isset.session)
            {
                field.Name = "session";
                field.Type = TType.Struct;
                field.ID   = 24;
                oprot.WriteFieldBegin(field);
                Session.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (DeviceId != null && __isset.deviceId)
            {
                field.Name = "deviceId";
                field.Type = TType.String;
                field.ID   = 25;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(DeviceId);
                oprot.WriteFieldEnd();
            }
            if (UserGUID != null && __isset.userGUID)
            {
                field.Name = "userGUID";
                field.Type = TType.String;
                field.ID   = 26;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(UserGUID);
                oprot.WriteFieldEnd();
            }
            if (MobileResetCode != null && __isset.mobileResetCode)
            {
                field.Name = "mobileResetCode";
                field.Type = TType.String;
                field.ID   = 27;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(MobileResetCode);
                oprot.WriteFieldEnd();
            }
            if (UserInforCompany != null && __isset.userInforCompany)
            {
                field.Name = "userInforCompany";
                field.Type = TType.Struct;
                field.ID   = 28;
                oprot.WriteFieldBegin(field);
                UserInforCompany.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (__isset.isMobile)
            {
                field.Name = "isMobile";
                field.Type = TType.Bool;
                field.ID   = 29;
                oprot.WriteFieldBegin(field);
                oprot.WriteBool(IsMobile);
                oprot.WriteFieldEnd();
            }
            if (__isset.dbStatusCode)
            {
                field.Name = "dbStatusCode";
                field.Type = TType.I32;
                field.ID   = 30;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(DbStatusCode);
                oprot.WriteFieldEnd();
            }
            if (UsernameEmail != null && __isset.usernameEmail)
            {
                field.Name = "usernameEmail";
                field.Type = TType.String;
                field.ID   = 31;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(UsernameEmail);
                oprot.WriteFieldEnd();
            }
            if (DeviceType != null && __isset.deviceType)
            {
                field.Name = "deviceType";
                field.Type = TType.String;
                field.ID   = 32;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(DeviceType);
                oprot.WriteFieldEnd();
            }
            if (PushCode != null && __isset.pushCode)
            {
                field.Name = "pushCode";
                field.Type = TType.String;
                field.ID   = 33;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(PushCode);
                oprot.WriteFieldEnd();
            }
            if (__isset.dbSubStatusCode)
            {
                field.Name = "dbSubStatusCode";
                field.Type = TType.I32;
                field.ID   = 34;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(DbSubStatusCode);
                oprot.WriteFieldEnd();
            }
            if (DbStatusMsg != null && __isset.dbStatusMsg)
            {
                field.Name = "dbStatusMsg";
                field.Type = TType.String;
                field.ID   = 35;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(DbStatusMsg);
                oprot.WriteFieldEnd();
            }
            oprot.WriteFieldStop();
            oprot.WriteStructEnd();
        }
Beispiel #9
0
        public void Read(TProtocol iprot)
        {
            TField field;

            iprot.ReadStructBegin();
            while (true)
            {
                field = iprot.ReadFieldBegin();
                if (field.Type == TType.Stop)
                {
                    break;
                }
                switch (field.ID)
                {
                case 1:
                    if (field.Type == TType.Struct)
                    {
                        UserInfo = new UserInfo();
                        UserInfo.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 2:
                    if (field.Type == TType.Struct)
                    {
                        User = new User();
                        User.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 3:
                    if (field.Type == TType.String)
                    {
                        AddedOn = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 4:
                    if (field.Type == TType.Struct)
                    {
                        RelationshipType = new RelationShipType();
                        RelationshipType.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 5:
                    if (field.Type == TType.Bool)
                    {
                        IsClose = iprot.ReadBool();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 6:
                    if (field.Type == TType.Struct)
                    {
                        UserInfoPerson = new UserInfoPerson();
                        UserInfoPerson.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 7:
                    if (field.Type == TType.Struct)
                    {
                        StatusType = new StatusType();
                        StatusType.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 8:
                    if (field.Type == TType.Struct)
                    {
                        SettingPerson = new SettingPerson();
                        SettingPerson.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 9:
                    if (field.Type == TType.Struct)
                    {
                        Country = new Country();
                        Country.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 10:
                    if (field.Type == TType.Struct)
                    {
                        Industry = new Industry();
                        Industry.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 11:
                    if (field.Type == TType.Bool)
                    {
                        CanMessage = iprot.ReadBool();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 12:
                    if (field.Type == TType.I32)
                    {
                        DbStatusCode = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 13:
                    if (field.Type == TType.String)
                    {
                        CTag = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 14:
                    if (field.Type == TType.I32)
                    {
                        FriendshipStatus = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 15:
                    if (field.Type == TType.Bool)
                    {
                        FromPhoneBook = iprot.ReadBool();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 16:
                    if (field.Type == TType.Bool)
                    {
                        ReceiveConnectionRequest = iprot.ReadBool();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 17:
                    if (field.Type == TType.Bool)
                    {
                        AllowAddingChatGroup = iprot.ReadBool();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 18:
                    if (field.Type == TType.Bool)
                    {
                        AllowMsgForword = iprot.ReadBool();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 19:
                    if (field.Type == TType.I32)
                    {
                        DbSubStatusCode = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 20:
                    if (field.Type == TType.String)
                    {
                        DbStatusMsg = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 21:
                    if (field.Type == TType.I32)
                    {
                        RequestId = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 22:
                    if (field.Type == TType.I32)
                    {
                        RequestTypeId = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 23:
                    if (field.Type == TType.String)
                    {
                        LastUpdated = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
Beispiel #10
0
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.String) {
           UserId = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.String) {
           Email = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 3:
         if (field.Type == TType.String) {
           UserName = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 4:
         if (field.Type == TType.String) {
           Password = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 5:
         if (field.Type == TType.String) {
           LastActivityDate = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 6:
         if (field.Type == TType.String) {
           PrimaryContactNumber = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 7:
         if (field.Type == TType.Bool) {
           IsApproved = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 8:
         if (field.Type == TType.Bool) {
           IsLockedOut = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 9:
         if (field.Type == TType.Bool) {
           IsActivated = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 10:
         if (field.Type == TType.String) {
           CreateDate = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 11:
         if (field.Type == TType.String) {
           LastLoginDate = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 12:
         if (field.Type == TType.String) {
           LastPasswordChangedDate = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 13:
         if (field.Type == TType.String) {
           LastLockoutDate = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 14:
         if (field.Type == TType.I32) {
           FailedPasswordAttemptCount = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 15:
         if (field.Type == TType.Bool) {
           IsFirstLogin = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 16:
         if (field.Type == TType.String) {
           CTag = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 17:
         if (field.Type == TType.Bool) {
           HasDeactivated = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 18:
         if (field.Type == TType.I32) {
           ChatStatus = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 19:
         if (field.Type == TType.Struct) {
           UserInfo = new UserInfo();
           UserInfo.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 20:
         if (field.Type == TType.Struct) {
           UserInfoPerson = new UserInfoPerson();
           UserInfoPerson.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 21:
         if (field.Type == TType.Struct) {
           UserCategory = new UserCategory();
           UserCategory.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 22:
         if (field.Type == TType.Struct) {
           Contact = new Contact();
           Contact.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 23:
         if (field.Type == TType.Struct) {
           Status = new Status();
           Status.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 24:
         if (field.Type == TType.Struct) {
           Session = new Session();
           Session.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 25:
         if (field.Type == TType.String) {
           DeviceId = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 26:
         if (field.Type == TType.String) {
           UserGUID = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 27:
         if (field.Type == TType.String) {
           MobileResetCode = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 28:
         if (field.Type == TType.Struct) {
           UserInforCompany = new UserInfoCompany();
           UserInforCompany.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 29:
         if (field.Type == TType.Bool) {
           IsMobile = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 30:
         if (field.Type == TType.I32) {
           DbStatusCode = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 31:
         if (field.Type == TType.String) {
           UsernameEmail = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 32:
         if (field.Type == TType.String) {
           DeviceType = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 33:
         if (field.Type == TType.String) {
           PushCode = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 34:
         if (field.Type == TType.I32) {
           DbSubStatusCode = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 35:
         if (field.Type == TType.String) {
           DbStatusMsg = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
 public void send_setBasicContactPersion(UserInfoPerson userinfo, Session session)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("setBasicContactPersion", TMessageType.Call, seqid_));
   setBasicContactPersion_args args = new setBasicContactPersion_args();
   args.Userinfo = userinfo;
   args.Session = session;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
 public IAsyncResult send_setBasicContactPersion(AsyncCallback callback, object state, UserInfoPerson userinfo, Session session)
      public DbStatus setBasicContactPersion(UserInfoPerson userinfo, Session session)
      {
        #if !SILVERLIGHT
        send_setBasicContactPersion(userinfo, session);
        return recv_setBasicContactPersion();

        #else
        var asyncResult = Begin_setBasicContactPersion(null, null, userinfo, session);
        return End_setBasicContactPersion(asyncResult);

        #endif
      }
Beispiel #14
0
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("User(");
            bool          __first = true;

            if (UserId != null && __isset.userId)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UserId: ");
                __sb.Append(UserId);
            }
            if (Email != null && __isset.email)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Email: ");
                __sb.Append(Email);
            }
            if (UserName != null && __isset.userName)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UserName: "******", ");
                }
                __first = false;
                __sb.Append("Password: "******", ");
                }
                __first = false;
                __sb.Append("LastActivityDate: ");
                __sb.Append(LastActivityDate);
            }
            if (PrimaryContactNumber != null && __isset.primaryContactNumber)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("PrimaryContactNumber: ");
                __sb.Append(PrimaryContactNumber);
            }
            if (__isset.isApproved)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("IsApproved: ");
                __sb.Append(IsApproved);
            }
            if (__isset.isLockedOut)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("IsLockedOut: ");
                __sb.Append(IsLockedOut);
            }
            if (__isset.isActivated)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("IsActivated: ");
                __sb.Append(IsActivated);
            }
            if (CreateDate != null && __isset.createDate)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("CreateDate: ");
                __sb.Append(CreateDate);
            }
            if (LastLoginDate != null && __isset.lastLoginDate)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("LastLoginDate: ");
                __sb.Append(LastLoginDate);
            }
            if (LastPasswordChangedDate != null && __isset.lastPasswordChangedDate)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("LastPasswordChangedDate: ");
                __sb.Append(LastPasswordChangedDate);
            }
            if (LastLockoutDate != null && __isset.lastLockoutDate)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("LastLockoutDate: ");
                __sb.Append(LastLockoutDate);
            }
            if (__isset.failedPasswordAttemptCount)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("FailedPasswordAttemptCount: ");
                __sb.Append(FailedPasswordAttemptCount);
            }
            if (__isset.isFirstLogin)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("IsFirstLogin: "******", ");
                }
                __first = false;
                __sb.Append("CTag: ");
                __sb.Append(CTag);
            }
            if (__isset.hasDeactivated)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("HasDeactivated: ");
                __sb.Append(HasDeactivated);
            }
            if (__isset.chatStatus)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("ChatStatus: ");
                __sb.Append(ChatStatus);
            }
            if (UserInfo != null && __isset.userInfo)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UserInfo: ");
                __sb.Append(UserInfo == null ? "<null>" : UserInfo.ToString());
            }
            if (UserInfoPerson != null && __isset.userInfoPerson)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UserInfoPerson: ");
                __sb.Append(UserInfoPerson == null ? "<null>" : UserInfoPerson.ToString());
            }
            if (UserCategory != null && __isset.userCategory)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UserCategory: ");
                __sb.Append(UserCategory == null ? "<null>" : UserCategory.ToString());
            }
            if (Contact != null && __isset.contact)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Contact: ");
                __sb.Append(Contact == null ? "<null>" : Contact.ToString());
            }
            if (Status != null && __isset.status)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Status: ");
                __sb.Append(Status == null ? "<null>" : Status.ToString());
            }
            if (Session != null && __isset.session)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Session: ");
                __sb.Append(Session == null ? "<null>" : Session.ToString());
            }
            if (DeviceId != null && __isset.deviceId)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DeviceId: ");
                __sb.Append(DeviceId);
            }
            if (UserGUID != null && __isset.userGUID)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UserGUID: ");
                __sb.Append(UserGUID);
            }
            if (MobileResetCode != null && __isset.mobileResetCode)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("MobileResetCode: ");
                __sb.Append(MobileResetCode);
            }
            if (UserInforCompany != null && __isset.userInforCompany)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UserInforCompany: ");
                __sb.Append(UserInforCompany == null ? "<null>" : UserInforCompany.ToString());
            }
            if (__isset.isMobile)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("IsMobile: ");
                __sb.Append(IsMobile);
            }
            if (__isset.dbStatusCode)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DbStatusCode: ");
                __sb.Append(DbStatusCode);
            }
            if (UsernameEmail != null && __isset.usernameEmail)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UsernameEmail: ");
                __sb.Append(UsernameEmail);
            }
            if (DeviceType != null && __isset.deviceType)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DeviceType: ");
                __sb.Append(DeviceType);
            }
            if (PushCode != null && __isset.pushCode)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("PushCode: ");
                __sb.Append(PushCode);
            }
            if (__isset.dbSubStatusCode)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DbSubStatusCode: ");
                __sb.Append(DbSubStatusCode);
            }
            if (DbStatusMsg != null && __isset.dbStatusMsg)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DbStatusMsg: ");
                __sb.Append(DbStatusMsg);
            }
            __sb.Append(")");
            return(__sb.ToString());
        }
Beispiel #15
0
        public void Write(TProtocol oprot)
        {
            TStruct struc = new TStruct("Friend");

            oprot.WriteStructBegin(struc);
            TField field = new TField();

            if (UserInfo != null && __isset.userInfo)
            {
                field.Name = "userInfo";
                field.Type = TType.Struct;
                field.ID   = 1;
                oprot.WriteFieldBegin(field);
                UserInfo.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (User != null && __isset.user)
            {
                field.Name = "user";
                field.Type = TType.Struct;
                field.ID   = 2;
                oprot.WriteFieldBegin(field);
                User.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (AddedOn != null && __isset.addedOn)
            {
                field.Name = "addedOn";
                field.Type = TType.String;
                field.ID   = 3;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(AddedOn);
                oprot.WriteFieldEnd();
            }
            if (RelationshipType != null && __isset.relationshipType)
            {
                field.Name = "relationshipType";
                field.Type = TType.Struct;
                field.ID   = 4;
                oprot.WriteFieldBegin(field);
                RelationshipType.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (__isset.isClose)
            {
                field.Name = "isClose";
                field.Type = TType.Bool;
                field.ID   = 5;
                oprot.WriteFieldBegin(field);
                oprot.WriteBool(IsClose);
                oprot.WriteFieldEnd();
            }
            if (UserInfoPerson != null && __isset.userInfoPerson)
            {
                field.Name = "userInfoPerson";
                field.Type = TType.Struct;
                field.ID   = 6;
                oprot.WriteFieldBegin(field);
                UserInfoPerson.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (StatusType != null && __isset.statusType)
            {
                field.Name = "statusType";
                field.Type = TType.Struct;
                field.ID   = 7;
                oprot.WriteFieldBegin(field);
                StatusType.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (SettingPerson != null && __isset.settingPerson)
            {
                field.Name = "settingPerson";
                field.Type = TType.Struct;
                field.ID   = 8;
                oprot.WriteFieldBegin(field);
                SettingPerson.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (Country != null && __isset.country)
            {
                field.Name = "country";
                field.Type = TType.Struct;
                field.ID   = 9;
                oprot.WriteFieldBegin(field);
                Country.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (Industry != null && __isset.industry)
            {
                field.Name = "industry";
                field.Type = TType.Struct;
                field.ID   = 10;
                oprot.WriteFieldBegin(field);
                Industry.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (__isset.canMessage)
            {
                field.Name = "canMessage";
                field.Type = TType.Bool;
                field.ID   = 11;
                oprot.WriteFieldBegin(field);
                oprot.WriteBool(CanMessage);
                oprot.WriteFieldEnd();
            }
            if (__isset.dbStatusCode)
            {
                field.Name = "dbStatusCode";
                field.Type = TType.I32;
                field.ID   = 12;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(DbStatusCode);
                oprot.WriteFieldEnd();
            }
            if (CTag != null && __isset.cTag)
            {
                field.Name = "cTag";
                field.Type = TType.String;
                field.ID   = 13;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(CTag);
                oprot.WriteFieldEnd();
            }
            if (__isset.friendshipStatus)
            {
                field.Name = "friendshipStatus";
                field.Type = TType.I32;
                field.ID   = 14;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(FriendshipStatus);
                oprot.WriteFieldEnd();
            }
            if (__isset.fromPhoneBook)
            {
                field.Name = "fromPhoneBook";
                field.Type = TType.Bool;
                field.ID   = 15;
                oprot.WriteFieldBegin(field);
                oprot.WriteBool(FromPhoneBook);
                oprot.WriteFieldEnd();
            }
            if (__isset.receiveConnectionRequest)
            {
                field.Name = "receiveConnectionRequest";
                field.Type = TType.Bool;
                field.ID   = 16;
                oprot.WriteFieldBegin(field);
                oprot.WriteBool(ReceiveConnectionRequest);
                oprot.WriteFieldEnd();
            }
            if (__isset.allowAddingChatGroup)
            {
                field.Name = "allowAddingChatGroup";
                field.Type = TType.Bool;
                field.ID   = 17;
                oprot.WriteFieldBegin(field);
                oprot.WriteBool(AllowAddingChatGroup);
                oprot.WriteFieldEnd();
            }
            if (__isset.allowMsgForword)
            {
                field.Name = "allowMsgForword";
                field.Type = TType.Bool;
                field.ID   = 18;
                oprot.WriteFieldBegin(field);
                oprot.WriteBool(AllowMsgForword);
                oprot.WriteFieldEnd();
            }
            if (__isset.dbSubStatusCode)
            {
                field.Name = "dbSubStatusCode";
                field.Type = TType.I32;
                field.ID   = 19;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(DbSubStatusCode);
                oprot.WriteFieldEnd();
            }
            if (DbStatusMsg != null && __isset.dbStatusMsg)
            {
                field.Name = "dbStatusMsg";
                field.Type = TType.String;
                field.ID   = 20;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(DbStatusMsg);
                oprot.WriteFieldEnd();
            }
            if (__isset.requestId)
            {
                field.Name = "requestId";
                field.Type = TType.I32;
                field.ID   = 21;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(RequestId);
                oprot.WriteFieldEnd();
            }
            if (__isset.requestTypeId)
            {
                field.Name = "requestTypeId";
                field.Type = TType.I32;
                field.ID   = 22;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(RequestTypeId);
                oprot.WriteFieldEnd();
            }
            if (LastUpdated != null && __isset.lastUpdated)
            {
                field.Name = "lastUpdated";
                field.Type = TType.String;
                field.ID   = 23;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(LastUpdated);
                oprot.WriteFieldEnd();
            }
            oprot.WriteFieldStop();
            oprot.WriteStructEnd();
        }
Beispiel #16
0
        public void Read(TProtocol iprot)
        {
            TField field;

            iprot.ReadStructBegin();
            while (true)
            {
                field = iprot.ReadFieldBegin();
                if (field.Type == TType.Stop)
                {
                    break;
                }
                switch (field.ID)
                {
                case 1:
                    if (field.Type == TType.String)
                    {
                        UserId = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 2:
                    if (field.Type == TType.String)
                    {
                        Email = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 3:
                    if (field.Type == TType.String)
                    {
                        UserName = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 4:
                    if (field.Type == TType.String)
                    {
                        Password = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 5:
                    if (field.Type == TType.String)
                    {
                        LastActivityDate = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 6:
                    if (field.Type == TType.String)
                    {
                        PrimaryContactNumber = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 7:
                    if (field.Type == TType.Bool)
                    {
                        IsApproved = iprot.ReadBool();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 8:
                    if (field.Type == TType.Bool)
                    {
                        IsLockedOut = iprot.ReadBool();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 9:
                    if (field.Type == TType.Bool)
                    {
                        IsActivated = iprot.ReadBool();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 10:
                    if (field.Type == TType.String)
                    {
                        CreateDate = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 11:
                    if (field.Type == TType.String)
                    {
                        LastLoginDate = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 12:
                    if (field.Type == TType.String)
                    {
                        LastPasswordChangedDate = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 13:
                    if (field.Type == TType.String)
                    {
                        LastLockoutDate = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 14:
                    if (field.Type == TType.I32)
                    {
                        FailedPasswordAttemptCount = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 15:
                    if (field.Type == TType.Bool)
                    {
                        IsFirstLogin = iprot.ReadBool();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 16:
                    if (field.Type == TType.String)
                    {
                        CTag = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 17:
                    if (field.Type == TType.Bool)
                    {
                        HasDeactivated = iprot.ReadBool();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 18:
                    if (field.Type == TType.I32)
                    {
                        ChatStatus = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 19:
                    if (field.Type == TType.Struct)
                    {
                        UserInfo = new UserInfo();
                        UserInfo.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 20:
                    if (field.Type == TType.Struct)
                    {
                        UserInfoPerson = new UserInfoPerson();
                        UserInfoPerson.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 21:
                    if (field.Type == TType.Struct)
                    {
                        UserCategory = new UserCategory();
                        UserCategory.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 22:
                    if (field.Type == TType.Struct)
                    {
                        Contact = new Contact();
                        Contact.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 23:
                    if (field.Type == TType.Struct)
                    {
                        Status = new Status();
                        Status.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 24:
                    if (field.Type == TType.Struct)
                    {
                        Session = new Session();
                        Session.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 25:
                    if (field.Type == TType.String)
                    {
                        DeviceId = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 26:
                    if (field.Type == TType.String)
                    {
                        UserGUID = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 27:
                    if (field.Type == TType.String)
                    {
                        MobileResetCode = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 28:
                    if (field.Type == TType.Struct)
                    {
                        UserInforCompany = new UserInfoCompany();
                        UserInforCompany.Read(iprot);
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 29:
                    if (field.Type == TType.Bool)
                    {
                        IsMobile = iprot.ReadBool();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 30:
                    if (field.Type == TType.I32)
                    {
                        DbStatusCode = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 31:
                    if (field.Type == TType.String)
                    {
                        UsernameEmail = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 32:
                    if (field.Type == TType.String)
                    {
                        DeviceType = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 33:
                    if (field.Type == TType.String)
                    {
                        PushCode = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 34:
                    if (field.Type == TType.I32)
                    {
                        DbSubStatusCode = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 35:
                    if (field.Type == TType.String)
                    {
                        DbStatusMsg = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
Beispiel #17
0
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("Friend(");
            bool          __first = true;

            if (UserInfo != null && __isset.userInfo)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UserInfo: ");
                __sb.Append(UserInfo == null ? "<null>" : UserInfo.ToString());
            }
            if (User != null && __isset.user)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("User: "******"<null>" : User.ToString());
            }
            if (AddedOn != null && __isset.addedOn)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("AddedOn: ");
                __sb.Append(AddedOn);
            }
            if (RelationshipType != null && __isset.relationshipType)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("RelationshipType: ");
                __sb.Append(RelationshipType == null ? "<null>" : RelationshipType.ToString());
            }
            if (__isset.isClose)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("IsClose: ");
                __sb.Append(IsClose);
            }
            if (UserInfoPerson != null && __isset.userInfoPerson)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UserInfoPerson: ");
                __sb.Append(UserInfoPerson == null ? "<null>" : UserInfoPerson.ToString());
            }
            if (StatusType != null && __isset.statusType)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("StatusType: ");
                __sb.Append(StatusType == null ? "<null>" : StatusType.ToString());
            }
            if (SettingPerson != null && __isset.settingPerson)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("SettingPerson: ");
                __sb.Append(SettingPerson == null ? "<null>" : SettingPerson.ToString());
            }
            if (Country != null && __isset.country)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Country: ");
                __sb.Append(Country == null ? "<null>" : Country.ToString());
            }
            if (Industry != null && __isset.industry)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Industry: ");
                __sb.Append(Industry == null ? "<null>" : Industry.ToString());
            }
            if (__isset.canMessage)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("CanMessage: ");
                __sb.Append(CanMessage);
            }
            if (__isset.dbStatusCode)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DbStatusCode: ");
                __sb.Append(DbStatusCode);
            }
            if (CTag != null && __isset.cTag)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("CTag: ");
                __sb.Append(CTag);
            }
            if (__isset.friendshipStatus)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("FriendshipStatus: ");
                __sb.Append(FriendshipStatus);
            }
            if (__isset.fromPhoneBook)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("FromPhoneBook: ");
                __sb.Append(FromPhoneBook);
            }
            if (__isset.receiveConnectionRequest)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("ReceiveConnectionRequest: ");
                __sb.Append(ReceiveConnectionRequest);
            }
            if (__isset.allowAddingChatGroup)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("AllowAddingChatGroup: ");
                __sb.Append(AllowAddingChatGroup);
            }
            if (__isset.allowMsgForword)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("AllowMsgForword: ");
                __sb.Append(AllowMsgForword);
            }
            if (__isset.dbSubStatusCode)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DbSubStatusCode: ");
                __sb.Append(DbSubStatusCode);
            }
            if (DbStatusMsg != null && __isset.dbStatusMsg)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DbStatusMsg: ");
                __sb.Append(DbStatusMsg);
            }
            if (__isset.requestId)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("RequestId: ");
                __sb.Append(RequestId);
            }
            if (__isset.requestTypeId)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("RequestTypeId: ");
                __sb.Append(RequestTypeId);
            }
            if (LastUpdated != null && __isset.lastUpdated)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("LastUpdated: ");
                __sb.Append(LastUpdated);
            }
            __sb.Append(")");
            return(__sb.ToString());
        }
Beispiel #18
0
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.Struct) {
           UserInfo = new UserInfo();
           UserInfo.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.Struct) {
           User = new User();
           User.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 3:
         if (field.Type == TType.String) {
           AddedOn = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 4:
         if (field.Type == TType.Struct) {
           RelationshipType = new RelationShipType();
           RelationshipType.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 5:
         if (field.Type == TType.Bool) {
           IsClose = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 6:
         if (field.Type == TType.Struct) {
           UserInfoPerson = new UserInfoPerson();
           UserInfoPerson.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 7:
         if (field.Type == TType.Struct) {
           StatusType = new StatusType();
           StatusType.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 8:
         if (field.Type == TType.Struct) {
           SettingPerson = new SettingPerson();
           SettingPerson.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 9:
         if (field.Type == TType.Struct) {
           Country = new Country();
           Country.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 10:
         if (field.Type == TType.Struct) {
           Industry = new Industry();
           Industry.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 11:
         if (field.Type == TType.Bool) {
           CanMessage = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 12:
         if (field.Type == TType.I32) {
           DbStatusCode = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 13:
         if (field.Type == TType.String) {
           CTag = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 14:
         if (field.Type == TType.I32) {
           FriendshipStatus = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 15:
         if (field.Type == TType.Bool) {
           FromPhoneBook = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 16:
         if (field.Type == TType.Bool) {
           ReceiveConnectionRequest = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 17:
         if (field.Type == TType.Bool) {
           AllowAddingChatGroup = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 18:
         if (field.Type == TType.Bool) {
           AllowMsgForword = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 19:
         if (field.Type == TType.I32) {
           DbSubStatusCode = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 20:
         if (field.Type == TType.String) {
           DbStatusMsg = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 21:
         if (field.Type == TType.I32) {
           RequestId = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 22:
         if (field.Type == TType.I32) {
           RequestTypeId = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 23:
         if (field.Type == TType.String) {
           LastUpdated = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.Struct) {
           Userinfo = new UserInfoPerson();
           Userinfo.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.Struct) {
           Session = new Session();
           Session.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }