public override string ToString() { StringBuilder sb = new StringBuilder("Notebook("); sb.Append("Guid: "); sb.Append(Guid); sb.Append(",Name: "); sb.Append(Name); sb.Append(",UpdateSequenceNum: "); sb.Append(UpdateSequenceNum); sb.Append(",DefaultNotebook: "); sb.Append(DefaultNotebook); sb.Append(",ServiceCreated: "); sb.Append(ServiceCreated); sb.Append(",ServiceUpdated: "); sb.Append(ServiceUpdated); sb.Append(",Publishing: "); sb.Append(Publishing == null ? "<null>" : Publishing.ToString()); sb.Append(",Published: "); sb.Append(Published); sb.Append(",Stack: "); sb.Append(Stack); sb.Append(",SharedNotebookIds: "); sb.Append(SharedNotebookIds); sb.Append(",SharedNotebooks: "); sb.Append(SharedNotebooks); sb.Append(",BusinessNotebook: "); sb.Append(BusinessNotebook == null ? "<null>" : BusinessNotebook.ToString()); sb.Append(",Contact: "); sb.Append(Contact == null ? "<null>" : Contact.ToString()); sb.Append(",Restrictions: "); sb.Append(Restrictions == null ? "<null>" : Restrictions.ToString()); sb.Append(")"); return(sb.ToString()); }
public override string ToString() { StringBuilder sb = new StringBuilder("Notebook("); sb.Append("Guid: "); sb.Append(Guid); sb.Append(",Name: "); sb.Append(Name); sb.Append(",UpdateSequenceNum: "); sb.Append(UpdateSequenceNum); sb.Append(",DefaultNotebook: "); sb.Append(DefaultNotebook); sb.Append(",ServiceCreated: "); sb.Append(ServiceCreated); sb.Append(",ServiceUpdated: "); sb.Append(ServiceUpdated); sb.Append(",Publishing: "); sb.Append(Publishing == null ? "<null>" : Publishing.ToString()); sb.Append(",Published: "); sb.Append(Published); sb.Append(",Stack: "); sb.Append(Stack); sb.Append(",SharedNotebookIds: "); sb.Append(SharedNotebookIds); sb.Append(")"); return(sb.ToString()); }
public void Write(TProtocol oprot) { TStruct struc = new TStruct("Notebook"); oprot.WriteStructBegin(struc); TField field = new TField(); if (Guid != null && __isset.guid) { field.Name = "guid"; field.Type = TType.String; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteString(Guid); oprot.WriteFieldEnd(); } if (Name != null && __isset.name) { field.Name = "name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); } if (__isset.updateSequenceNum) { field.Name = "updateSequenceNum"; field.Type = TType.I32; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteI32(UpdateSequenceNum); oprot.WriteFieldEnd(); } if (__isset.defaultNotebook) { field.Name = "defaultNotebook"; field.Type = TType.Bool; field.ID = 6; oprot.WriteFieldBegin(field); oprot.WriteBool(DefaultNotebook); oprot.WriteFieldEnd(); } if (__isset.serviceCreated) { field.Name = "serviceCreated"; field.Type = TType.I64; field.ID = 7; oprot.WriteFieldBegin(field); oprot.WriteI64(ServiceCreated); oprot.WriteFieldEnd(); } if (__isset.serviceUpdated) { field.Name = "serviceUpdated"; field.Type = TType.I64; field.ID = 8; oprot.WriteFieldBegin(field); oprot.WriteI64(ServiceUpdated); oprot.WriteFieldEnd(); } if (Publishing != null && __isset.publishing) { field.Name = "publishing"; field.Type = TType.Struct; field.ID = 10; oprot.WriteFieldBegin(field); Publishing.Write(oprot); oprot.WriteFieldEnd(); } if (__isset.published) { field.Name = "published"; field.Type = TType.Bool; field.ID = 11; oprot.WriteFieldBegin(field); oprot.WriteBool(Published); oprot.WriteFieldEnd(); } if (Stack != null && __isset.stack) { field.Name = "stack"; field.Type = TType.String; field.ID = 12; oprot.WriteFieldBegin(field); oprot.WriteString(Stack); oprot.WriteFieldEnd(); } if (SharedNotebookIds != null && __isset.sharedNotebookIds) { field.Name = "sharedNotebookIds"; field.Type = TType.List; field.ID = 13; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.I64, SharedNotebookIds.Count)); foreach (long _iter32 in SharedNotebookIds) { oprot.WriteI64(_iter32); oprot.WriteListEnd(); } } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); }
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) { Guid = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { Name = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.I32) { UpdateSequenceNum = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.Bool) { DefaultNotebook = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.I64) { ServiceCreated = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.I64) { ServiceUpdated = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 10: if (field.Type == TType.Struct) { Publishing = new Publishing(); Publishing.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.Bool) { Published = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 12: if (field.Type == TType.String) { Stack = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 13: if (field.Type == TType.List) { { SharedNotebookIds = new List <long>(); TList _list29 = iprot.ReadListBegin(); for (int _i30 = 0; _i30 < _list29.Count; ++_i30) { long _elem31 = 0; _elem31 = iprot.ReadI64(); SharedNotebookIds.Add(_elem31); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public override string ToString() { StringBuilder __sb = new StringBuilder("Notebook("); bool __first = true; if (Guid != null && __isset.guid) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Guid: "); __sb.Append(Guid); } if (Name != null && __isset.name) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Name: "); __sb.Append(Name); } if (__isset.updateSequenceNum) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("UpdateSequenceNum: "); __sb.Append(UpdateSequenceNum); } if (__isset.defaultNotebook) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("DefaultNotebook: "); __sb.Append(DefaultNotebook); } if (__isset.serviceCreated) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("ServiceCreated: "); __sb.Append(ServiceCreated); } if (__isset.serviceUpdated) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("ServiceUpdated: "); __sb.Append(ServiceUpdated); } if (Publishing != null && __isset.publishing) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Publishing: "); __sb.Append(Publishing == null ? "<null>" : Publishing.ToString()); } if (__isset.published) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Published: "); __sb.Append(Published); } if (Stack != null && __isset.stack) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Stack: "); __sb.Append(Stack); } if (SharedNotebookIds != null && __isset.sharedNotebookIds) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("SharedNotebookIds: "); __sb.Append(SharedNotebookIds); } if (SharedNotebooks != null && __isset.sharedNotebooks) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("SharedNotebooks: "); __sb.Append(SharedNotebooks); } if (BusinessNotebook != null && __isset.businessNotebook) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("BusinessNotebook: "); __sb.Append(BusinessNotebook == null ? "<null>" : BusinessNotebook.ToString()); } if (Contact != null && __isset.contact) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Contact: "); __sb.Append(Contact == null ? "<null>" : Contact.ToString()); } if (Restrictions != null && __isset.restrictions) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Restrictions: "); __sb.Append(Restrictions == null ? "<null>" : Restrictions.ToString()); } if (RecipientSettings != null && __isset.recipientSettings) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("RecipientSettings: "); __sb.Append(RecipientSettings == null ? "<null>" : RecipientSettings.ToString()); } __sb.Append(")"); return(__sb.ToString()); }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("Notebook"); oprot.WriteStructBegin(struc); TField field = new TField(); if (Guid != null && __isset.guid) { field.Name = "guid"; field.Type = TType.String; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteString(Guid); oprot.WriteFieldEnd(); } if (Name != null && __isset.name) { field.Name = "name"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(Name); oprot.WriteFieldEnd(); } if (__isset.updateSequenceNum) { field.Name = "updateSequenceNum"; field.Type = TType.I32; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteI32(UpdateSequenceNum); oprot.WriteFieldEnd(); } if (__isset.defaultNotebook) { field.Name = "defaultNotebook"; field.Type = TType.Bool; field.ID = 6; oprot.WriteFieldBegin(field); oprot.WriteBool(DefaultNotebook); oprot.WriteFieldEnd(); } if (__isset.serviceCreated) { field.Name = "serviceCreated"; field.Type = TType.I64; field.ID = 7; oprot.WriteFieldBegin(field); oprot.WriteI64(ServiceCreated); oprot.WriteFieldEnd(); } if (__isset.serviceUpdated) { field.Name = "serviceUpdated"; field.Type = TType.I64; field.ID = 8; oprot.WriteFieldBegin(field); oprot.WriteI64(ServiceUpdated); oprot.WriteFieldEnd(); } if (Publishing != null && __isset.publishing) { field.Name = "publishing"; field.Type = TType.Struct; field.ID = 10; oprot.WriteFieldBegin(field); Publishing.Write(oprot); oprot.WriteFieldEnd(); } if (__isset.published) { field.Name = "published"; field.Type = TType.Bool; field.ID = 11; oprot.WriteFieldBegin(field); oprot.WriteBool(Published); oprot.WriteFieldEnd(); } if (Stack != null && __isset.stack) { field.Name = "stack"; field.Type = TType.String; field.ID = 12; oprot.WriteFieldBegin(field); oprot.WriteString(Stack); oprot.WriteFieldEnd(); } if (SharedNotebookIds != null && __isset.sharedNotebookIds) { field.Name = "sharedNotebookIds"; field.Type = TType.List; field.ID = 13; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.I64, SharedNotebookIds.Count)); foreach (long _iter44 in SharedNotebookIds) { oprot.WriteI64(_iter44); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (SharedNotebooks != null && __isset.sharedNotebooks) { field.Name = "sharedNotebooks"; field.Type = TType.List; field.ID = 14; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, SharedNotebooks.Count)); foreach (SharedNotebook _iter45 in SharedNotebooks) { _iter45.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (BusinessNotebook != null && __isset.businessNotebook) { field.Name = "businessNotebook"; field.Type = TType.Struct; field.ID = 15; oprot.WriteFieldBegin(field); BusinessNotebook.Write(oprot); oprot.WriteFieldEnd(); } if (Contact != null && __isset.contact) { field.Name = "contact"; field.Type = TType.Struct; field.ID = 16; oprot.WriteFieldBegin(field); Contact.Write(oprot); oprot.WriteFieldEnd(); } if (Restrictions != null && __isset.restrictions) { field.Name = "restrictions"; field.Type = TType.Struct; field.ID = 17; oprot.WriteFieldBegin(field); Restrictions.Write(oprot); oprot.WriteFieldEnd(); } if (RecipientSettings != null && __isset.recipientSettings) { field.Name = "recipientSettings"; field.Type = TType.Struct; field.ID = 18; oprot.WriteFieldBegin(field); RecipientSettings.Write(oprot); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Read(TProtocol iprot) { iprot.IncrementRecursionDepth(); try { 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) { Guid = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { Name = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.I32) { UpdateSequenceNum = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.Bool) { DefaultNotebook = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.I64) { ServiceCreated = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.I64) { ServiceUpdated = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 10: if (field.Type == TType.Struct) { Publishing = new Publishing(); Publishing.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.Bool) { Published = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 12: if (field.Type == TType.String) { Stack = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 13: if (field.Type == TType.List) { { SharedNotebookIds = new List <long>(); TList _list38 = iprot.ReadListBegin(); for (int _i39 = 0; _i39 < _list38.Count; ++_i39) { long _elem40; _elem40 = iprot.ReadI64(); SharedNotebookIds.Add(_elem40); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 14: if (field.Type == TType.List) { { SharedNotebooks = new List <SharedNotebook>(); TList _list41 = iprot.ReadListBegin(); for (int _i42 = 0; _i42 < _list41.Count; ++_i42) { SharedNotebook _elem43; _elem43 = new SharedNotebook(); _elem43.Read(iprot); SharedNotebooks.Add(_elem43); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 15: if (field.Type == TType.Struct) { BusinessNotebook = new BusinessNotebook(); BusinessNotebook.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 16: if (field.Type == TType.Struct) { Contact = new User(); Contact.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 17: if (field.Type == TType.Struct) { Restrictions = new NotebookRestrictions(); Restrictions.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 18: if (field.Type == TType.Struct) { RecipientSettings = new NotebookRecipientSettings(); RecipientSettings.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); } finally { iprot.DecrementRecursionDepth(); } }
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) { this.guid = iprot.ReadString(); this.__isset.guid = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { this.name = iprot.ReadString(); this.__isset.name = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.I32) { this.updateSequenceNum = iprot.ReadI32(); this.__isset.updateSequenceNum = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.Bool) { this.defaultNotebook = iprot.ReadBool(); this.__isset.defaultNotebook = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.I64) { this.serviceCreated = iprot.ReadI64(); this.__isset.serviceCreated = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.I64) { this.serviceUpdated = iprot.ReadI64(); this.__isset.serviceUpdated = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 10: if (field.Type == TType.Struct) { this.publishing = new Publishing(); this.publishing.Read(iprot); this.__isset.publishing = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.Bool) { this.published = iprot.ReadBool(); this.__isset.published = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 12: if (field.Type == TType.String) { this.stack = iprot.ReadString(); this.__isset.stack = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 13: if (field.Type == TType.List) { { this.sharedNotebookIds = new List<long>(); TList _list20 = iprot.ReadListBegin(); for( int _i21 = 0; _i21 < _list20.Count; ++_i21) { long _elem22 = 0; _elem22 = iprot.ReadI64(); this.sharedNotebookIds.Add(_elem22); } iprot.ReadListEnd(); } this.__isset.sharedNotebookIds = true; } 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.String) { Guid = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { Name = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.I32) { UpdateSequenceNum = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.Bool) { DefaultNotebook = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.I64) { ServiceCreated = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.I64) { ServiceUpdated = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 10: if (field.Type == TType.Struct) { Publishing = new Publishing(); Publishing.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.Bool) { Published = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 12: if (field.Type == TType.String) { Stack = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 13: if (field.Type == TType.List) { { SharedNotebookIds = new List<long>(); TList _list34 = iprot.ReadListBegin(); for( int _i35 = 0; _i35 < _list34.Count; ++_i35) { long _elem36 = 0; _elem36 = iprot.ReadI64(); SharedNotebookIds.Add(_elem36); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 14: if (field.Type == TType.List) { { SharedNotebooks = new List<SharedNotebook>(); TList _list37 = iprot.ReadListBegin(); for( int _i38 = 0; _i38 < _list37.Count; ++_i38) { SharedNotebook _elem39 = new SharedNotebook(); _elem39 = new SharedNotebook(); _elem39.Read(iprot); SharedNotebooks.Add(_elem39); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 15: if (field.Type == TType.Struct) { BusinessNotebook = new BusinessNotebook(); BusinessNotebook.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 16: if (field.Type == TType.Struct) { Contact = new User(); Contact.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 17: if (field.Type == TType.Struct) { Restrictions = new NotebookRestrictions(); Restrictions.Read(iprot); } 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.String) { Guid = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { Name = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.I32) { UpdateSequenceNum = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.Bool) { DefaultNotebook = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.I64) { ServiceCreated = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.I64) { ServiceUpdated = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 10: if (field.Type == TType.Struct) { Publishing = new Publishing(); Publishing.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.Bool) { Published = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 12: if (field.Type == TType.String) { Stack = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 13: if (field.Type == TType.List) { { SharedNotebookIds = new List<long>(); TList _list29 = iprot.ReadListBegin(); for( int _i30 = 0; _i30 < _list29.Count; ++_i30) { long _elem31 = 0; _elem31 = iprot.ReadI64(); SharedNotebookIds.Add(_elem31); } iprot.ReadListEnd(); } } 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.String) { this.guid = iprot.ReadString(); this.__isset.guid = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { this.name = iprot.ReadString(); this.__isset.name = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.I32) { this.updateSequenceNum = iprot.ReadI32(); this.__isset.updateSequenceNum = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.Bool) { this.defaultNotebook = iprot.ReadBool(); this.__isset.defaultNotebook = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.I64) { this.serviceCreated = iprot.ReadI64(); this.__isset.serviceCreated = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.I64) { this.serviceUpdated = iprot.ReadI64(); this.__isset.serviceUpdated = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 10: if (field.Type == TType.Struct) { this.publishing = new Publishing(); this.publishing.Read(iprot); this.__isset.publishing = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.Bool) { this.published = iprot.ReadBool(); this.__isset.published = true; } 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.String) { this.guid = iprot.ReadString(); this.__isset.guid = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { this.name = iprot.ReadString(); this.__isset.name = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.I32) { this.updateSequenceNum = iprot.ReadI32(); this.__isset.updateSequenceNum = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.Bool) { this.defaultNotebook = iprot.ReadBool(); this.__isset.defaultNotebook = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.I64) { this.serviceCreated = iprot.ReadI64(); this.__isset.serviceCreated = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.I64) { this.serviceUpdated = iprot.ReadI64(); this.__isset.serviceUpdated = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 10: if (field.Type == TType.Struct) { this.publishing = new Publishing(); this.publishing.Read(iprot); this.__isset.publishing = true; } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.Bool) { this.published = iprot.ReadBool(); this.__isset.published = true; } 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.String) { Guid = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { Name = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.I32) { UpdateSequenceNum = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.Bool) { DefaultNotebook = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.I64) { ServiceCreated = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.I64) { ServiceUpdated = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 10: if (field.Type == TType.Struct) { Publishing = new Publishing(); Publishing.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.Bool) { Published = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 12: if (field.Type == TType.String) { Stack = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 13: if (field.Type == TType.List) { { SharedNotebookIds = new List <long>(); TList _list34 = iprot.ReadListBegin(); for (int _i35 = 0; _i35 < _list34.Count; ++_i35) { long _elem36 = 0; _elem36 = iprot.ReadI64(); SharedNotebookIds.Add(_elem36); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 14: if (field.Type == TType.List) { { SharedNotebooks = new List <SharedNotebook>(); TList _list37 = iprot.ReadListBegin(); for (int _i38 = 0; _i38 < _list37.Count; ++_i38) { SharedNotebook _elem39 = new SharedNotebook(); _elem39 = new SharedNotebook(); _elem39.Read(iprot); SharedNotebooks.Add(_elem39); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 15: if (field.Type == TType.Struct) { BusinessNotebook = new BusinessNotebook(); BusinessNotebook.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 16: if (field.Type == TType.Struct) { Contact = new User(); Contact.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 17: if (field.Type == TType.Struct) { Restrictions = new NotebookRestrictions(); Restrictions.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }