コード例 #1
0
        public void Write(TProtocol oprot)
        {
            TStruct struc = new TStruct("UserAcademicResponse");

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

            if (DbStatus != null && __isset.dbStatus)
            {
                field.Name = "dbStatus";
                field.Type = TType.Struct;
                field.ID   = 1;
                oprot.WriteFieldBegin(field);
                DbStatus.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (__isset.academicId)
            {
                field.Name = "academicId";
                field.Type = TType.I64;
                field.ID   = 2;
                oprot.WriteFieldBegin(field);
                oprot.WriteI64(AcademicId);
                oprot.WriteFieldEnd();
            }
            oprot.WriteFieldStop();
            oprot.WriteStructEnd();
        }
コード例 #2
0
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("UserAcademicResponse(");
            bool          __first = true;

            if (DbStatus != null && __isset.dbStatus)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DbStatus: ");
                __sb.Append(DbStatus == null ? "<null>" : DbStatus.ToString());
            }
            if (__isset.academicId)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("AcademicId: ");
                __sb.Append(AcademicId);
            }
            __sb.Append(")");
            return(__sb.ToString());
        }
コード例 #3
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) {
           DbStatus = new DbStatus();
           DbStatus.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.I64) {
           AcademicId = iprot.ReadI64();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
コード例 #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 0:
                        if (field.Type == TType.Struct)
                        {
                            Success = new DbStatus();
                            Success.Read(iprot);
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

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

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

                    default:
                        TProtocolUtil.Skip(iprot, field.Type);
                        break;
                    }
                    iprot.ReadFieldEnd();
                }
                iprot.ReadStructEnd();
            }
コード例 #5
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.I64)
                    {
                        AwardAndHonorId = iprot.ReadI64();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

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

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
コード例 #6
0
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("Employment(");
            bool          __first = true;

            if (__isset.userId)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UserId: ");
                __sb.Append(UserId);
            }
            if (__isset.mode)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Mode: ");
                __sb.Append(Mode);
            }
            if (EmployeeInfo != null && __isset.employeeInfo)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("EmployeeInfo: ");
                __sb.Append(EmployeeInfo == null ? "<null>" : EmployeeInfo.ToString());
            }
            if (__isset.personEmploymentId)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("PersonEmploymentId: ");
                __sb.Append(PersonEmploymentId);
            }
            if (__isset.requestId)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("RequestId: ");
                __sb.Append(RequestId);
            }
            if (City != null && __isset.city)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("City: ");
                __sb.Append(City == null ? "<null>" : City.ToString());
            }
            if (DbStatus != null && __isset.dbStatus)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DbStatus: ");
                __sb.Append(DbStatus == null ? "<null>" : DbStatus.ToString());
            }
            if (EmployeeIds != null && __isset.employeeIds)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("EmployeeIds: ");
                __sb.Append(EmployeeIds);
            }
            if (__isset.rating)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Rating: ");
                __sb.Append(Rating);
            }
            __sb.Append(")");
            return(__sb.ToString());
        }
コード例 #7
0
        public void Write(TProtocol oprot)
        {
            TStruct struc = new TStruct("Employment");

            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.mode)
            {
                field.Name = "mode";
                field.Type = TType.I16;
                field.ID   = 2;
                oprot.WriteFieldBegin(field);
                oprot.WriteI16(Mode);
                oprot.WriteFieldEnd();
            }
            if (EmployeeInfo != null && __isset.employeeInfo)
            {
                field.Name = "employeeInfo";
                field.Type = TType.Struct;
                field.ID   = 3;
                oprot.WriteFieldBegin(field);
                EmployeeInfo.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (__isset.personEmploymentId)
            {
                field.Name = "personEmploymentId";
                field.Type = TType.I64;
                field.ID   = 4;
                oprot.WriteFieldBegin(field);
                oprot.WriteI64(PersonEmploymentId);
                oprot.WriteFieldEnd();
            }
            if (__isset.requestId)
            {
                field.Name = "requestId";
                field.Type = TType.I64;
                field.ID   = 5;
                oprot.WriteFieldBegin(field);
                oprot.WriteI64(RequestId);
                oprot.WriteFieldEnd();
            }
            if (City != null && __isset.city)
            {
                field.Name = "city";
                field.Type = TType.Struct;
                field.ID   = 6;
                oprot.WriteFieldBegin(field);
                City.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (DbStatus != null && __isset.dbStatus)
            {
                field.Name = "dbStatus";
                field.Type = TType.Struct;
                field.ID   = 7;
                oprot.WriteFieldBegin(field);
                DbStatus.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (EmployeeIds != null && __isset.employeeIds)
            {
                field.Name = "employeeIds";
                field.Type = TType.String;
                field.ID   = 8;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(EmployeeIds);
                oprot.WriteFieldEnd();
            }
            if (__isset.rating)
            {
                field.Name = "rating";
                field.Type = TType.I32;
                field.ID   = 9;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(Rating);
                oprot.WriteFieldEnd();
            }
            oprot.WriteFieldStop();
            oprot.WriteStructEnd();
        }
コード例 #8
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.I16)
                    {
                        Mode = iprot.ReadI16();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

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

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

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

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

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

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

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

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
コード例 #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.Bool) {
           HasNextPage = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.List) {
           {
             CompanyEmployeeInfos = new List<CompanyEmployeeInfo>();
             TList _list20 = iprot.ReadListBegin();
             for( int _i21 = 0; _i21 < _list20.Count; ++_i21)
             {
               CompanyEmployeeInfo _elem22;
               _elem22 = new CompanyEmployeeInfo();
               _elem22.Read(iprot);
               CompanyEmployeeInfos.Add(_elem22);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 3:
         if (field.Type == TType.I64) {
           RequestId = iprot.ReadI64();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 4:
         if (field.Type == TType.I32) {
           CompanyUserId = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 5:
         if (field.Type == TType.Struct) {
           DbStatus = new DbStatus();
           DbStatus.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
コード例 #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.Bool)
                    {
                        HasNextPage = iprot.ReadBool();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 2:
                    if (field.Type == TType.List)
                    {
                        {
                            CompanyEmployeeInfos = new List <CompanyEmployeeInfo>();
                            TList _list20 = iprot.ReadListBegin();
                            for (int _i21 = 0; _i21 < _list20.Count; ++_i21)
                            {
                                CompanyEmployeeInfo _elem22;
                                _elem22 = new CompanyEmployeeInfo();
                                _elem22.Read(iprot);
                                CompanyEmployeeInfos.Add(_elem22);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

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

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

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

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
コード例 #11
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.String) {
           NextCompany = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 3:
         if (field.Type == TType.Bool) {
           Accepted = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 4:
         if (field.Type == TType.Bool) {
           CurrentIsParent = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 5:
         if (field.Type == TType.I32) {
           RequestId = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 6:
         if (field.Type == TType.I64) {
           NotificationId = iprot.ReadI64();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 7:
         if (field.Type == TType.Struct) {
           DbStatus = new DbStatus();
           DbStatus.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
コード例 #12
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.I16) {
           Mode = iprot.ReadI16();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 3:
         if (field.Type == TType.Struct) {
           EmployeeInfo = new CompanyEmployeeInfo();
           EmployeeInfo.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 4:
         if (field.Type == TType.I64) {
           PersonEmploymentId = iprot.ReadI64();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 5:
         if (field.Type == TType.I64) {
           RequestId = iprot.ReadI64();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 6:
         if (field.Type == TType.Struct) {
           City = new City();
           City.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 7:
         if (field.Type == TType.Struct) {
           DbStatus = new DbStatus();
           DbStatus.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 8:
         if (field.Type == TType.String) {
           EmployeeIds = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 9:
         if (field.Type == TType.I32) {
           Rating = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
コード例 #13
0
        public void Write(TProtocol oprot)
        {
            TStruct struc = new TStruct("Skill");

            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.friendId)
            {
                field.Name = "friendId";
                field.Type = TType.I32;
                field.ID   = 2;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(FriendId);
                oprot.WriteFieldEnd();
            }
            if (__isset.skillTypeId)
            {
                field.Name = "skillTypeId";
                field.Type = TType.I32;
                field.ID   = 3;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(SkillTypeId);
                oprot.WriteFieldEnd();
            }
            if (__isset.thumbsUpOrDown)
            {
                field.Name = "thumbsUpOrDown";
                field.Type = TType.I32;
                field.ID   = 4;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(ThumbsUpOrDown);
                oprot.WriteFieldEnd();
            }
            if (__isset.thumbsUp)
            {
                field.Name = "thumbsUp";
                field.Type = TType.I32;
                field.ID   = 5;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(ThumbsUp);
                oprot.WriteFieldEnd();
            }
            if (__isset.thumbsDown)
            {
                field.Name = "thumbsDown";
                field.Type = TType.I32;
                field.ID   = 6;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(ThumbsDown);
                oprot.WriteFieldEnd();
            }
            if (__isset.yourThumb)
            {
                field.Name = "yourThumb";
                field.Type = TType.Bool;
                field.ID   = 7;
                oprot.WriteFieldBegin(field);
                oprot.WriteBool(YourThumb);
                oprot.WriteFieldEnd();
            }
            if (DbStatus != null && __isset.dbStatus)
            {
                field.Name = "dbStatus";
                field.Type = TType.Struct;
                field.ID   = 8;
                oprot.WriteFieldBegin(field);
                DbStatus.Write(oprot);
                oprot.WriteFieldEnd();
            }
            if (__isset.offset)
            {
                field.Name = "offset";
                field.Type = TType.I32;
                field.ID   = 9;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(Offset);
                oprot.WriteFieldEnd();
            }
            if (__isset.pageSize)
            {
                field.Name = "pageSize";
                field.Type = TType.I32;
                field.ID   = 10;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(PageSize);
                oprot.WriteFieldEnd();
            }
            if (Picture != null && __isset.picture)
            {
                field.Name = "picture";
                field.Type = TType.String;
                field.ID   = 11;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(Picture);
                oprot.WriteFieldEnd();
            }
            if (Username != null && __isset.username)
            {
                field.Name = "username";
                field.Type = TType.String;
                field.ID   = 12;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(Username);
                oprot.WriteFieldEnd();
            }
            if (Name != null && __isset.name)
            {
                field.Name = "name";
                field.Type = TType.String;
                field.ID   = 13;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(Name);
                oprot.WriteFieldEnd();
            }
            if (Text != null && __isset.text)
            {
                field.Name = "text";
                field.Type = TType.String;
                field.ID   = 14;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(Text);
                oprot.WriteFieldEnd();
            }
            if (__isset.suggestorId)
            {
                field.Name = "suggestorId";
                field.Type = TType.I32;
                field.ID   = 15;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(SuggestorId);
                oprot.WriteFieldEnd();
            }
            if (__isset.accept)
            {
                field.Name = "accept";
                field.Type = TType.Bool;
                field.ID   = 16;
                oprot.WriteFieldBegin(field);
                oprot.WriteBool(Accept);
                oprot.WriteFieldEnd();
            }
            if (__isset.profileUserId)
            {
                field.Name = "profileUserId";
                field.Type = TType.I32;
                field.ID   = 17;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(ProfileUserId);
                oprot.WriteFieldEnd();
            }
            if (SkillName != null && __isset.skillName)
            {
                field.Name = "skillName";
                field.Type = TType.String;
                field.ID   = 18;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(SkillName);
                oprot.WriteFieldEnd();
            }
            if (__isset.percentThumbsUp)
            {
                field.Name = "percentThumbsUp";
                field.Type = TType.I32;
                field.ID   = 19;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(PercentThumbsUp);
                oprot.WriteFieldEnd();
            }
            if (__isset.percentThumbsDown)
            {
                field.Name = "percentThumbsDown";
                field.Type = TType.I32;
                field.ID   = 20;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(PercentThumbsDown);
                oprot.WriteFieldEnd();
            }
            if (SkillGuid != null && __isset.skillGuid)
            {
                field.Name = "skillGuid";
                field.Type = TType.String;
                field.ID   = 21;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(SkillGuid);
                oprot.WriteFieldEnd();
            }
            if (UserIdOrName != null && __isset.userIdOrName)
            {
                field.Name = "userIdOrName";
                field.Type = TType.String;
                field.ID   = 22;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(UserIdOrName);
                oprot.WriteFieldEnd();
            }
            if (Suggestor != null && __isset.suggestor)
            {
                field.Name = "suggestor";
                field.Type = TType.String;
                field.ID   = 23;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(Suggestor);
                oprot.WriteFieldEnd();
            }
            if (EmployeeIds != null && __isset.employeeIds)
            {
                field.Name = "employeeIds";
                field.Type = TType.String;
                field.ID   = 24;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(EmployeeIds);
                oprot.WriteFieldEnd();
            }
            if (__isset.rating)
            {
                field.Name = "rating";
                field.Type = TType.I32;
                field.ID   = 25;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(Rating);
                oprot.WriteFieldEnd();
            }
            if (ProfileUser != null && __isset.profileUser)
            {
                field.Name = "profileUser";
                field.Type = TType.String;
                field.ID   = 26;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(ProfileUser);
                oprot.WriteFieldEnd();
            }
            if (Users != null && __isset.users)
            {
                field.Name = "users";
                field.Type = TType.String;
                field.ID   = 27;
                oprot.WriteFieldBegin(field);
                oprot.WriteString(Users);
                oprot.WriteFieldEnd();
            }
            if (__isset.thumbsCount)
            {
                field.Name = "thumbsCount";
                field.Type = TType.I32;
                field.ID   = 28;
                oprot.WriteFieldBegin(field);
                oprot.WriteI32(ThumbsCount);
                oprot.WriteFieldEnd();
            }
            oprot.WriteFieldStop();
            oprot.WriteStructEnd();
        }
コード例 #14
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)
                    {
                        FriendId = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
コード例 #15
0
        public override string ToString()
        {
            StringBuilder __sb    = new StringBuilder("Skill(");
            bool          __first = true;

            if (__isset.userId)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UserId: ");
                __sb.Append(UserId);
            }
            if (__isset.friendId)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("FriendId: ");
                __sb.Append(FriendId);
            }
            if (__isset.skillTypeId)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("SkillTypeId: ");
                __sb.Append(SkillTypeId);
            }
            if (__isset.thumbsUpOrDown)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("ThumbsUpOrDown: ");
                __sb.Append(ThumbsUpOrDown);
            }
            if (__isset.thumbsUp)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("ThumbsUp: ");
                __sb.Append(ThumbsUp);
            }
            if (__isset.thumbsDown)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("ThumbsDown: ");
                __sb.Append(ThumbsDown);
            }
            if (__isset.yourThumb)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("YourThumb: ");
                __sb.Append(YourThumb);
            }
            if (DbStatus != null && __isset.dbStatus)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("DbStatus: ");
                __sb.Append(DbStatus == null ? "<null>" : DbStatus.ToString());
            }
            if (__isset.offset)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Offset: ");
                __sb.Append(Offset);
            }
            if (__isset.pageSize)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("PageSize: ");
                __sb.Append(PageSize);
            }
            if (Picture != null && __isset.picture)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Picture: ");
                __sb.Append(Picture);
            }
            if (Username != null && __isset.username)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Username: "******", ");
                }
                __first = false;
                __sb.Append("Name: ");
                __sb.Append(Name);
            }
            if (Text != null && __isset.text)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Text: ");
                __sb.Append(Text);
            }
            if (__isset.suggestorId)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("SuggestorId: ");
                __sb.Append(SuggestorId);
            }
            if (__isset.accept)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Accept: ");
                __sb.Append(Accept);
            }
            if (__isset.profileUserId)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("ProfileUserId: ");
                __sb.Append(ProfileUserId);
            }
            if (SkillName != null && __isset.skillName)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("SkillName: ");
                __sb.Append(SkillName);
            }
            if (__isset.percentThumbsUp)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("PercentThumbsUp: ");
                __sb.Append(PercentThumbsUp);
            }
            if (__isset.percentThumbsDown)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("PercentThumbsDown: ");
                __sb.Append(PercentThumbsDown);
            }
            if (SkillGuid != null && __isset.skillGuid)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("SkillGuid: ");
                __sb.Append(SkillGuid);
            }
            if (UserIdOrName != null && __isset.userIdOrName)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("UserIdOrName: ");
                __sb.Append(UserIdOrName);
            }
            if (Suggestor != null && __isset.suggestor)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Suggestor: ");
                __sb.Append(Suggestor);
            }
            if (EmployeeIds != null && __isset.employeeIds)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("EmployeeIds: ");
                __sb.Append(EmployeeIds);
            }
            if (__isset.rating)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("Rating: ");
                __sb.Append(Rating);
            }
            if (ProfileUser != null && __isset.profileUser)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("ProfileUser: "******", ");
                }
                __first = false;
                __sb.Append("Users: ");
                __sb.Append(Users);
            }
            if (__isset.thumbsCount)
            {
                if (!__first)
                {
                    __sb.Append(", ");
                }
                __first = false;
                __sb.Append("ThumbsCount: ");
                __sb.Append(ThumbsCount);
            }
            __sb.Append(")");
            return(__sb.ToString());
        }
コード例 #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.Bool) {
           HasNextPage = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.List) {
           {
             Skills = new List<Skill>();
             TList _list140 = iprot.ReadListBegin();
             for( int _i141 = 0; _i141 < _list140.Count; ++_i141)
             {
               Skill _elem142;
               _elem142 = new Skill();
               _elem142.Read(iprot);
               Skills.Add(_elem142);
             }
             iprot.ReadListEnd();
           }
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 3:
         if (field.Type == TType.I32) {
           ThumbsUp = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 4:
         if (field.Type == TType.I32) {
           ThumbsDown = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 5:
         if (field.Type == TType.I32) {
           YourThumb = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 6:
         if (field.Type == TType.Struct) {
           DbStatus = new DbStatus();
           DbStatus.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
コード例 #17
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)
                    {
                        ContactCustomIds = iprot.ReadString();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

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

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

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

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
コード例 #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.I32)
                    {
                        UserId = iprot.ReadI32();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

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

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

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

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

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

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

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }
コード例 #19
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 0:
         if (field.Type == TType.Struct) {
           Success = new DbStatus();
           Success.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 1:
         if (field.Type == TType.Struct) {
           Ex = new InboxException();
           Ex.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.Struct) {
           Se = new SessionException();
           Se.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
コード例 #20
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) {
           ContactChatNetworkId = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.String) {
           ContactCustomIds = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 3:
         if (field.Type == TType.I64) {
           ContactId = iprot.ReadI64();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 4:
         if (field.Type == TType.String) {
           CustomContactsCustomeIds = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 5:
         if (field.Type == TType.Struct) {
           Dbstatus = new DbStatus();
           Dbstatus.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
コード例 #21
0
ファイル: Skill.cs プロジェクト: tektak-abhisheksth/Web-API
 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) {
           FriendId = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 3:
         if (field.Type == TType.I32) {
           SkillTypeId = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 4:
         if (field.Type == TType.I32) {
           ThumbsUpOrDown = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 5:
         if (field.Type == TType.I32) {
           ThumbsUp = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 6:
         if (field.Type == TType.I32) {
           ThumbsDown = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 7:
         if (field.Type == TType.Bool) {
           YourThumb = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 8:
         if (field.Type == TType.Struct) {
           DbStatus = new DbStatus();
           DbStatus.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 9:
         if (field.Type == TType.I32) {
           Offset = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 10:
         if (field.Type == TType.I32) {
           PageSize = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 11:
         if (field.Type == TType.String) {
           Picture = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 12:
         if (field.Type == TType.String) {
           Username = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 13:
         if (field.Type == TType.String) {
           Name = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 14:
         if (field.Type == TType.String) {
           Text = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 15:
         if (field.Type == TType.I32) {
           SuggestorId = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 16:
         if (field.Type == TType.Bool) {
           Accept = iprot.ReadBool();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 17:
         if (field.Type == TType.I32) {
           ProfileUserId = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 18:
         if (field.Type == TType.String) {
           SkillName = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 19:
         if (field.Type == TType.I32) {
           PercentThumbsUp = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 20:
         if (field.Type == TType.I32) {
           PercentThumbsDown = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 21:
         if (field.Type == TType.String) {
           SkillGuid = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 22:
         if (field.Type == TType.String) {
           UserIdOrName = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 23:
         if (field.Type == TType.String) {
           Suggestor = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 24:
         if (field.Type == TType.String) {
           EmployeeIds = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 25:
         if (field.Type == TType.I32) {
           Rating = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 26:
         if (field.Type == TType.String) {
           ProfileUser = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 27:
         if (field.Type == TType.String) {
           Users = iprot.ReadString();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 28:
         if (field.Type == TType.I32) {
           ThumbsCount = iprot.ReadI32();
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }
コード例 #22
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.Bool)
                    {
                        HasNextPage = iprot.ReadBool();
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

                case 2:
                    if (field.Type == TType.List)
                    {
                        {
                            Skills = new List <Skill>();
                            TList _list140 = iprot.ReadListBegin();
                            for (int _i141 = 0; _i141 < _list140.Count; ++_i141)
                            {
                                Skill _elem142;
                                _elem142 = new Skill();
                                _elem142.Read(iprot);
                                Skills.Add(_elem142);
                            }
                            iprot.ReadListEnd();
                        }
                    }
                    else
                    {
                        TProtocolUtil.Skip(iprot, field.Type);
                    }
                    break;

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

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

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

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

                default:
                    TProtocolUtil.Skip(iprot, field.Type);
                    break;
                }
                iprot.ReadFieldEnd();
            }
            iprot.ReadStructEnd();
        }