Exemple #1
0
    public override string ToString()
    {
        StringBuilder __sb = new StringBuilder("TimPBean(");

        __sb.Append(", ThreadId: ");
        __sb.Append(ThreadId);
        if (FromTid != null && __isset.fromTid)
        {
            __sb.Append(", FromTid: ");
            __sb.Append(FromTid == null ? "<null>" : FromTid.ToString());
        }
        if (ToTid != null && __isset.toTid)
        {
            __sb.Append(", ToTid: ");
            __sb.Append(ToTid == null ? "<null>" : ToTid.ToString());
        }
        if (Status != null && __isset.status)
        {
            __sb.Append(", Status: ");
            __sb.Append(Status);
        }
        if (Type != null && __isset.type)
        {
            __sb.Append(", Type: ");
            __sb.Append(Type);
        }
        if (__isset.priority)
        {
            __sb.Append(", Priority: ");
            __sb.Append(Priority);
        }
        if (Show != null && __isset.show)
        {
            __sb.Append(", Show: ");
            __sb.Append(Show);
        }
        if (LeaguerTid != null && __isset.leaguerTid)
        {
            __sb.Append(", LeaguerTid: ");
            __sb.Append(LeaguerTid == null ? "<null>" : LeaguerTid.ToString());
        }
        if (ExtraList != null && __isset.extraList)
        {
            __sb.Append(", ExtraList: ");
            __sb.Append(ExtraList);
        }
        if (Error != null && __isset.error)
        {
            __sb.Append(", Error: ");
            __sb.Append(Error == null ? "<null>" : Error.ToString());
        }
        if (ExtraMap != null && __isset.extraMap)
        {
            __sb.Append(", ExtraMap: ");
            __sb.Append(ExtraMap);
        }
        __sb.Append(")");
        return(__sb.ToString());
    }
Exemple #2
0
    public override string ToString()
    {
        StringBuilder __sb = new StringBuilder("TimIqBean(");

        __sb.Append(", ThreadId: ");
        __sb.Append(ThreadId);
        if (FromTid != null && __isset.fromTid)
        {
            __sb.Append(", FromTid: ");
            __sb.Append(FromTid == null ? "<null>" : FromTid.ToString());
        }
        if (ToTid != null && __isset.toTid)
        {
            __sb.Append(", ToTid: ");
            __sb.Append(ToTid == null ? "<null>" : ToTid.ToString());
        }
        if (Type != null && __isset.type)
        {
            __sb.Append(", Type: ");
            __sb.Append(Type);
        }
        if (ExtraList != null && __isset.extraList)
        {
            __sb.Append(", ExtraList: ");
            __sb.Append(ExtraList);
        }
        if (Error != null && __isset.error)
        {
            __sb.Append(", Error: ");
            __sb.Append(Error == null ? "<null>" : Error.ToString());
        }
        if (ExtraMap != null && __isset.extraMap)
        {
            __sb.Append(", ExtraMap: ");
            __sb.Append(ExtraMap);
        }
        __sb.Append(")");
        return(__sb.ToString());
    }
Exemple #3
0
    public override string ToString()
    {
        StringBuilder __sb = new StringBuilder("TimSock5Bean(");

        __sb.Append(", FromTid: ");
        __sb.Append(FromTid == null ? "<null>" : FromTid.ToString());
        __sb.Append(", ToTid: ");
        __sb.Append(ToTid == null ? "<null>" : ToTid.ToString());
        __sb.Append(", Addr: ");
        __sb.Append(Addr);
        __sb.Append(", Port: ");
        __sb.Append(Port);
        __sb.Append(", Transport: ");
        __sb.Append(Transport);
        __sb.Append(", PubId: ");
        __sb.Append(PubId);
        if (ExtraMap != null && __isset.extraMap)
        {
            __sb.Append(", ExtraMap: ");
            __sb.Append(ExtraMap);
        }
        __sb.Append(")");
        return(__sb.ToString());
    }
Exemple #4
0
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("TimSock5Bean");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         field.Name = "fromTid";
         field.Type = TType.Struct;
         field.ID   = 1;
         oprot.WriteFieldBegin(field);
         FromTid.Write(oprot);
         oprot.WriteFieldEnd();
         field.Name = "toTid";
         field.Type = TType.Struct;
         field.ID   = 2;
         oprot.WriteFieldBegin(field);
         ToTid.Write(oprot);
         oprot.WriteFieldEnd();
         field.Name = "addr";
         field.Type = TType.String;
         field.ID   = 3;
         oprot.WriteFieldBegin(field);
         oprot.WriteString(Addr);
         oprot.WriteFieldEnd();
         field.Name = "port";
         field.Type = TType.I32;
         field.ID   = 4;
         oprot.WriteFieldBegin(field);
         oprot.WriteI32(Port);
         oprot.WriteFieldEnd();
         field.Name = "transport";
         field.Type = TType.I16;
         field.ID   = 5;
         oprot.WriteFieldBegin(field);
         oprot.WriteI16(Transport);
         oprot.WriteFieldEnd();
         field.Name = "pubId";
         field.Type = TType.String;
         field.ID   = 6;
         oprot.WriteFieldBegin(field);
         oprot.WriteString(PubId);
         oprot.WriteFieldEnd();
         if (ExtraMap != null && __isset.extraMap)
         {
             field.Name = "extraMap";
             field.Type = TType.Map;
             field.ID   = 7;
             oprot.WriteFieldBegin(field);
             {
                 oprot.WriteMapBegin(new TMap(TType.String, TType.String, ExtraMap.Count));
                 foreach (string _iter121 in ExtraMap.Keys)
                 {
                     oprot.WriteString(_iter121);
                     oprot.WriteString(ExtraMap[_iter121]);
                 }
                 oprot.WriteMapEnd();
             }
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }
Exemple #5
0
    public override string ToString()
    {
        StringBuilder __sb = new StringBuilder("TimMBean(");

        __sb.Append(", ThreadId: ");
        __sb.Append(ThreadId);
        if (Mid != null && __isset.mid)
        {
            __sb.Append(", Mid: ");
            __sb.Append(Mid);
        }
        if (FromTid != null && __isset.fromTid)
        {
            __sb.Append(", FromTid: ");
            __sb.Append(FromTid == null ? "<null>" : FromTid.ToString());
        }
        if (ToTid != null && __isset.toTid)
        {
            __sb.Append(", ToTid: ");
            __sb.Append(ToTid == null ? "<null>" : ToTid.ToString());
        }
        if (Body != null && __isset.body)
        {
            __sb.Append(", Body: ");
            __sb.Append(Body);
        }
        if (Type != null && __isset.type)
        {
            __sb.Append(", Type: ");
            __sb.Append(Type);
        }
        if (__isset.msgType)
        {
            __sb.Append(", MsgType: ");
            __sb.Append(MsgType);
        }
        if (Offline != null && __isset.offline)
        {
            __sb.Append(", Offline: ");
            __sb.Append(Offline == null ? "<null>" : Offline.ToString());
        }
        if (LeaguerTid != null && __isset.leaguerTid)
        {
            __sb.Append(", LeaguerTid: ");
            __sb.Append(LeaguerTid == null ? "<null>" : LeaguerTid.ToString());
        }
        if (ExtraList != null && __isset.extraList)
        {
            __sb.Append(", ExtraList: ");
            __sb.Append(ExtraList);
        }
        if (Timestamp != null && __isset.timestamp)
        {
            __sb.Append(", Timestamp: ");
            __sb.Append(Timestamp);
        }
        if (Error != null && __isset.error)
        {
            __sb.Append(", Error: ");
            __sb.Append(Error == null ? "<null>" : Error.ToString());
        }
        if (ExtraMap != null && __isset.extraMap)
        {
            __sb.Append(", ExtraMap: ");
            __sb.Append(ExtraMap);
        }
        if (__isset.readstatus)
        {
            __sb.Append(", Readstatus: ");
            __sb.Append(Readstatus);
        }
        __sb.Append(")");
        return(__sb.ToString());
    }
Exemple #6
0
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("TimMBean");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         field.Name = "threadId";
         field.Type = TType.String;
         field.ID   = 1;
         oprot.WriteFieldBegin(field);
         oprot.WriteString(ThreadId);
         oprot.WriteFieldEnd();
         if (Mid != null && __isset.mid)
         {
             field.Name = "mid";
             field.Type = TType.String;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             oprot.WriteString(Mid);
             oprot.WriteFieldEnd();
         }
         if (FromTid != null && __isset.fromTid)
         {
             field.Name = "fromTid";
             field.Type = TType.Struct;
             field.ID   = 3;
             oprot.WriteFieldBegin(field);
             FromTid.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (ToTid != null && __isset.toTid)
         {
             field.Name = "toTid";
             field.Type = TType.Struct;
             field.ID   = 4;
             oprot.WriteFieldBegin(field);
             ToTid.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (Body != null && __isset.body)
         {
             field.Name = "body";
             field.Type = TType.String;
             field.ID   = 5;
             oprot.WriteFieldBegin(field);
             oprot.WriteString(Body);
             oprot.WriteFieldEnd();
         }
         if (Type != null && __isset.type)
         {
             field.Name = "type";
             field.Type = TType.String;
             field.ID   = 6;
             oprot.WriteFieldBegin(field);
             oprot.WriteString(Type);
             oprot.WriteFieldEnd();
         }
         if (__isset.msgType)
         {
             field.Name = "msgType";
             field.Type = TType.I16;
             field.ID   = 7;
             oprot.WriteFieldBegin(field);
             oprot.WriteI16(MsgType);
             oprot.WriteFieldEnd();
         }
         if (Offline != null && __isset.offline)
         {
             field.Name = "offline";
             field.Type = TType.Struct;
             field.ID   = 8;
             oprot.WriteFieldBegin(field);
             Offline.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (LeaguerTid != null && __isset.leaguerTid)
         {
             field.Name = "leaguerTid";
             field.Type = TType.Struct;
             field.ID   = 9;
             oprot.WriteFieldBegin(field);
             LeaguerTid.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (ExtraList != null && __isset.extraList)
         {
             field.Name = "extraList";
             field.Type = TType.List;
             field.ID   = 10;
             oprot.WriteFieldBegin(field);
             {
                 oprot.WriteListBegin(new TList(TType.Struct, ExtraList.Count));
                 foreach (TimNode _iter82 in ExtraList)
                 {
                     _iter82.Write(oprot);
                 }
                 oprot.WriteListEnd();
             }
             oprot.WriteFieldEnd();
         }
         if (Timestamp != null && __isset.timestamp)
         {
             field.Name = "timestamp";
             field.Type = TType.String;
             field.ID   = 11;
             oprot.WriteFieldBegin(field);
             oprot.WriteString(Timestamp);
             oprot.WriteFieldEnd();
         }
         if (Error != null && __isset.error)
         {
             field.Name = "error";
             field.Type = TType.Struct;
             field.ID   = 12;
             oprot.WriteFieldBegin(field);
             Error.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (ExtraMap != null && __isset.extraMap)
         {
             field.Name = "extraMap";
             field.Type = TType.Map;
             field.ID   = 13;
             oprot.WriteFieldBegin(field);
             {
                 oprot.WriteMapBegin(new TMap(TType.String, TType.String, ExtraMap.Count));
                 foreach (string _iter83 in ExtraMap.Keys)
                 {
                     oprot.WriteString(_iter83);
                     oprot.WriteString(ExtraMap[_iter83]);
                 }
                 oprot.WriteMapEnd();
             }
             oprot.WriteFieldEnd();
         }
         if (__isset.readstatus)
         {
             field.Name = "readstatus";
             field.Type = TType.I16;
             field.ID   = 14;
             oprot.WriteFieldBegin(field);
             oprot.WriteI16(Readstatus);
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }
Exemple #7
0
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("TimIqBean");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         field.Name = "threadId";
         field.Type = TType.String;
         field.ID   = 1;
         oprot.WriteFieldBegin(field);
         oprot.WriteString(ThreadId);
         oprot.WriteFieldEnd();
         if (FromTid != null && __isset.fromTid)
         {
             field.Name = "fromTid";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             FromTid.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (ToTid != null && __isset.toTid)
         {
             field.Name = "toTid";
             field.Type = TType.Struct;
             field.ID   = 3;
             oprot.WriteFieldBegin(field);
             ToTid.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (Type != null && __isset.type)
         {
             field.Name = "type";
             field.Type = TType.String;
             field.ID   = 4;
             oprot.WriteFieldBegin(field);
             oprot.WriteString(Type);
             oprot.WriteFieldEnd();
         }
         if (ExtraList != null && __isset.extraList)
         {
             field.Name = "extraList";
             field.Type = TType.List;
             field.ID   = 5;
             oprot.WriteFieldBegin(field);
             {
                 oprot.WriteListBegin(new TList(TType.Struct, ExtraList.Count));
                 foreach (TimNode _iter91 in ExtraList)
                 {
                     _iter91.Write(oprot);
                 }
                 oprot.WriteListEnd();
             }
             oprot.WriteFieldEnd();
         }
         if (Error != null && __isset.error)
         {
             field.Name = "error";
             field.Type = TType.Struct;
             field.ID   = 6;
             oprot.WriteFieldBegin(field);
             Error.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (ExtraMap != null && __isset.extraMap)
         {
             field.Name = "extraMap";
             field.Type = TType.Map;
             field.ID   = 7;
             oprot.WriteFieldBegin(field);
             {
                 oprot.WriteMapBegin(new TMap(TType.String, TType.String, ExtraMap.Count));
                 foreach (string _iter92 in ExtraMap.Keys)
                 {
                     oprot.WriteString(_iter92);
                     oprot.WriteString(ExtraMap[_iter92]);
                 }
                 oprot.WriteMapEnd();
             }
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }
Exemple #8
0
 public void Write(TProtocol oprot)
 {
     oprot.IncrementRecursionDepth();
     try
     {
         TStruct struc = new TStruct("TimPBean");
         oprot.WriteStructBegin(struc);
         TField field = new TField();
         field.Name = "threadId";
         field.Type = TType.String;
         field.ID   = 1;
         oprot.WriteFieldBegin(field);
         oprot.WriteString(ThreadId);
         oprot.WriteFieldEnd();
         if (FromTid != null && __isset.fromTid)
         {
             field.Name = "fromTid";
             field.Type = TType.Struct;
             field.ID   = 2;
             oprot.WriteFieldBegin(field);
             FromTid.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (ToTid != null && __isset.toTid)
         {
             field.Name = "toTid";
             field.Type = TType.Struct;
             field.ID   = 3;
             oprot.WriteFieldBegin(field);
             ToTid.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (Status != null && __isset.status)
         {
             field.Name = "status";
             field.Type = TType.String;
             field.ID   = 4;
             oprot.WriteFieldBegin(field);
             oprot.WriteString(Status);
             oprot.WriteFieldEnd();
         }
         if (Type != null && __isset.type)
         {
             field.Name = "type";
             field.Type = TType.String;
             field.ID   = 5;
             oprot.WriteFieldBegin(field);
             oprot.WriteString(Type);
             oprot.WriteFieldEnd();
         }
         if (__isset.priority)
         {
             field.Name = "priority";
             field.Type = TType.I32;
             field.ID   = 6;
             oprot.WriteFieldBegin(field);
             oprot.WriteI32(Priority);
             oprot.WriteFieldEnd();
         }
         if (Show != null && __isset.show)
         {
             field.Name = "show";
             field.Type = TType.String;
             field.ID   = 7;
             oprot.WriteFieldBegin(field);
             oprot.WriteString(Show);
             oprot.WriteFieldEnd();
         }
         if (LeaguerTid != null && __isset.leaguerTid)
         {
             field.Name = "leaguerTid";
             field.Type = TType.Struct;
             field.ID   = 8;
             oprot.WriteFieldBegin(field);
             LeaguerTid.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (ExtraList != null && __isset.extraList)
         {
             field.Name = "extraList";
             field.Type = TType.List;
             field.ID   = 9;
             oprot.WriteFieldBegin(field);
             {
                 oprot.WriteListBegin(new TList(TType.Struct, ExtraList.Count));
                 foreach (TimNode _iter73 in ExtraList)
                 {
                     _iter73.Write(oprot);
                 }
                 oprot.WriteListEnd();
             }
             oprot.WriteFieldEnd();
         }
         if (Error != null && __isset.error)
         {
             field.Name = "error";
             field.Type = TType.Struct;
             field.ID   = 10;
             oprot.WriteFieldBegin(field);
             Error.Write(oprot);
             oprot.WriteFieldEnd();
         }
         if (ExtraMap != null && __isset.extraMap)
         {
             field.Name = "extraMap";
             field.Type = TType.Map;
             field.ID   = 11;
             oprot.WriteFieldBegin(field);
             {
                 oprot.WriteMapBegin(new TMap(TType.String, TType.String, ExtraMap.Count));
                 foreach (string _iter74 in ExtraMap.Keys)
                 {
                     oprot.WriteString(_iter74);
                     oprot.WriteString(ExtraMap[_iter74]);
                 }
                 oprot.WriteMapEnd();
             }
             oprot.WriteFieldEnd();
         }
         oprot.WriteFieldStop();
         oprot.WriteStructEnd();
     }
     finally
     {
         oprot.DecrementRecursionDepth();
     }
 }