public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("MNMessagesSyncDeltaPagesManagerEvent"); oprot.WriteStructBegin(struc); TField field = new TField(); if (ThreadKey != null && __isset.ThreadKey) { field.Name = "ThreadKey"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); ThreadKey.Write(oprot); oprot.WriteFieldEnd(); } if (JsonBlob != null && __isset.JsonBlob) { field.Name = "JsonBlob"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(JsonBlob); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("MNMessagesSyncDeltaThreadMuteSettings"); oprot.WriteStructBegin(struc); TField field = new TField(); if (ThreadKey != null && __isset.ThreadKey) { field.Name = "ThreadKey"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); ThreadKey.Write(oprot); oprot.WriteFieldEnd(); } if (__isset.ExpireTime) { field.Name = "ExpireTime"; field.Type = TType.I64; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteI64(ExpireTime); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("MNMessagesSyncDeltaReadReceipt"); oprot.WriteStructBegin(struc); TField field = new TField(); if (ThreadKey != null && __isset.ThreadKey) { field.Name = "ThreadKey"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); ThreadKey.Write(oprot); oprot.WriteFieldEnd(); } if (__isset.ActorFbId) { field.Name = "ActorFbId"; field.Type = TType.I64; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteI64(ActorFbId); oprot.WriteFieldEnd(); } if (__isset.ActionTimestampMs) { field.Name = "ActionTimestampMs"; field.Type = TType.I64; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteI64(ActionTimestampMs); oprot.WriteFieldEnd(); } if (__isset.WatermarkTimestampMs) { field.Name = "WatermarkTimestampMs"; field.Type = TType.I64; field.ID = 4; oprot.WriteFieldBegin(field); oprot.WriteI64(WatermarkTimestampMs); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("MNMessagesSyncDeltaForcedFetch"); oprot.WriteStructBegin(struc); TField field = new TField(); if (ThreadKey != null && __isset.ThreadKey) { field.Name = "ThreadKey"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); ThreadKey.Write(oprot); oprot.WriteFieldEnd(); } if (MessageId != null && __isset.MessageId) { field.Name = "MessageId"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(MessageId); oprot.WriteFieldEnd(); } if (__isset.IsLazy) { field.Name = "IsLazy"; field.Type = TType.Bool; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteBool(IsLazy); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("MNMessagesSyncDeltaNewGroupThread"); oprot.WriteStructBegin(struc); TField field = new TField(); if (ThreadKey != null && __isset.ThreadKey) { field.Name = "ThreadKey"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); ThreadKey.Write(oprot); oprot.WriteFieldEnd(); } if (Participants != null && __isset.Participants) { field.Name = "Participants"; field.Type = TType.List; field.ID = 2; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, Participants.Count)); foreach (MNMessagesSyncParticipantInfo _iter38 in Participants) { _iter38.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("MNMessagesSyncDeltaMessageDelete"); oprot.WriteStructBegin(struc); TField field = new TField(); if (ThreadKey != null && __isset.ThreadKey) { field.Name = "ThreadKey"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); ThreadKey.Write(oprot); oprot.WriteFieldEnd(); } if (MessageIds != null && __isset.MessageIds) { field.Name = "MessageIds"; field.Type = TType.List; field.ID = 2; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.String, MessageIds.Count)); foreach (string _iter58 in MessageIds) { oprot.WriteString(_iter58); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("MNMessagesSyncDeltaNotificationSettings"); oprot.WriteStructBegin(struc); TField field = new TField(); if (ThreadKey != null && __isset.ThreadKey) { field.Name = "ThreadKey"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); ThreadKey.Write(oprot); oprot.WriteFieldEnd(); } if (DoNotDisturbRanges != null && __isset.DoNotDisturbRanges) { field.Name = "DoNotDisturbRanges"; field.Type = TType.List; field.ID = 2; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.Struct, DoNotDisturbRanges.Count)); foreach (MNMessagesSyncNotificationDoNotDisturbRange _iter119 in DoNotDisturbRanges) { _iter119.Write(oprot); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("MNMessagesSyncDeltaDeliveryReceipt"); oprot.WriteStructBegin(struc); TField field = new TField(); if (ThreadKey != null && __isset.ThreadKey) { field.Name = "ThreadKey"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); ThreadKey.Write(oprot); oprot.WriteFieldEnd(); } if (__isset.ActorFbId) { field.Name = "ActorFbId"; field.Type = TType.I64; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteI64(ActorFbId); oprot.WriteFieldEnd(); } if (DeviceId != null && __isset.DeviceId) { field.Name = "DeviceId"; field.Type = TType.String; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteString(DeviceId); oprot.WriteFieldEnd(); } if (__isset.AppId) { field.Name = "AppId"; field.Type = TType.I64; field.ID = 4; oprot.WriteFieldBegin(field); oprot.WriteI64(AppId); oprot.WriteFieldEnd(); } if (__isset.TimestampMs) { field.Name = "TimestampMs"; field.Type = TType.I64; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteI64(TimestampMs); oprot.WriteFieldEnd(); } if (MessageIds != null && __isset.MessageIds) { field.Name = "MessageIds"; field.Type = TType.List; field.ID = 6; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.String, MessageIds.Count)); foreach (string _iter110 in MessageIds) { oprot.WriteString(_iter110); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } if (__isset.DeliveredWatermarkTimestampMs) { field.Name = "DeliveredWatermarkTimestampMs"; field.Type = TType.I64; field.ID = 7; oprot.WriteFieldBegin(field); oprot.WriteI64(DeliveredWatermarkTimestampMs); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("MNMessagesSyncMessageMetadata"); oprot.WriteStructBegin(struc); TField field = new TField(); if (ThreadKey != null && __isset.ThreadKey) { field.Name = "ThreadKey"; field.Type = TType.Struct; field.ID = 1; oprot.WriteFieldBegin(field); ThreadKey.Write(oprot); oprot.WriteFieldEnd(); } if (MessageId != null && __isset.MessageId) { field.Name = "MessageId"; field.Type = TType.String; field.ID = 2; oprot.WriteFieldBegin(field); oprot.WriteString(MessageId); oprot.WriteFieldEnd(); } if (__isset.OfflineThreadingId) { field.Name = "OfflineThreadingId"; field.Type = TType.I64; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteI64(OfflineThreadingId); oprot.WriteFieldEnd(); } if (__isset.ActorFbId) { field.Name = "ActorFbId"; field.Type = TType.I64; field.ID = 4; oprot.WriteFieldBegin(field); oprot.WriteI64(ActorFbId); oprot.WriteFieldEnd(); } if (__isset.Timestamp) { field.Name = "Timestamp"; field.Type = TType.I64; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteI64(Timestamp); oprot.WriteFieldEnd(); } if (__isset.ShouldBuzzDevice) { field.Name = "ShouldBuzzDevice"; field.Type = TType.Bool; field.ID = 6; oprot.WriteFieldBegin(field); oprot.WriteBool(ShouldBuzzDevice); oprot.WriteFieldEnd(); } if (AdminText != null && __isset.AdminText) { field.Name = "AdminText"; field.Type = TType.String; field.ID = 7; oprot.WriteFieldBegin(field); oprot.WriteString(AdminText); oprot.WriteFieldEnd(); } if (Tags != null && __isset.Tags) { field.Name = "Tags"; field.Type = TType.List; field.ID = 9; oprot.WriteFieldBegin(field); { oprot.WriteListBegin(new TList(TType.String, Tags.Count)); foreach (string _iter25 in Tags) { oprot.WriteString(_iter25); } oprot.WriteListEnd(); } oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }