public override string ToString() { StringBuilder __sb = new StringBuilder("THClickDetails("); bool __first = true; if (__isset.matchType) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("MatchType: "); __sb.Append(MatchType); } if (DebugDetails != null && __isset.debugDetails) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("DebugDetails: "); __sb.Append(DebugDetails == null ? "<null>" : DebugDetails.ToString()); } if (__isset.dateInstalled) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("DateInstalled: "); __sb.Append(DateInstalled); } if (__isset.trackType) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("TrackType: "); __sb.Append(TrackType); } if (Os != null && __isset.os) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Os: "); __sb.Append(Os); } if (OsVersion != null && __isset.osVersion) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("OsVersion: "); __sb.Append(OsVersion); } if (DeviceBrand != null && __isset.deviceBrand) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("DeviceBrand: "); __sb.Append(DeviceBrand); } if (DeviceModel != null && __isset.deviceModel) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("DeviceModel: "); __sb.Append(DeviceModel); } if (Country != null && __isset.country) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("Country: "); __sb.Append(Country); } if (City != null && __isset.city) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("City: "); __sb.Append(City); } if (__isset.dateFirstInstalled) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("DateFirstInstalled: "); __sb.Append(DateFirstInstalled); } if (DeviceId != null && __isset.deviceId) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("DeviceId: "); __sb.Append(DeviceId); } if (UserId != null && __isset.userId) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("UserId: "); __sb.Append(UserId); } if (__isset.clickCreatedAt) { if (!__first) { __sb.Append(", "); } __first = false; __sb.Append("ClickCreatedAt: "); __sb.Append(ClickCreatedAt); } __sb.Append(")"); return(__sb.ToString()); }
public void Write(TProtocol oprot) { oprot.IncrementRecursionDepth(); try { TStruct struc = new TStruct("THClickDetails"); oprot.WriteStructBegin(struc); TField field = new TField(); if (__isset.matchType) { field.Name = "matchType"; field.Type = TType.I32; field.ID = 1; oprot.WriteFieldBegin(field); oprot.WriteI32((int)MatchType); oprot.WriteFieldEnd(); } if (DebugDetails != null && __isset.debugDetails) { field.Name = "debugDetails"; field.Type = TType.Struct; field.ID = 2; oprot.WriteFieldBegin(field); DebugDetails.Write(oprot); oprot.WriteFieldEnd(); } if (__isset.dateInstalled) { field.Name = "dateInstalled"; field.Type = TType.I64; field.ID = 3; oprot.WriteFieldBegin(field); oprot.WriteI64(DateInstalled); oprot.WriteFieldEnd(); } if (__isset.trackType) { field.Name = "trackType"; field.Type = TType.I32; field.ID = 4; oprot.WriteFieldBegin(field); oprot.WriteI32((int)TrackType); oprot.WriteFieldEnd(); } if (Os != null && __isset.os) { field.Name = "os"; field.Type = TType.String; field.ID = 5; oprot.WriteFieldBegin(field); oprot.WriteString(Os); oprot.WriteFieldEnd(); } if (OsVersion != null && __isset.osVersion) { field.Name = "osVersion"; field.Type = TType.String; field.ID = 6; oprot.WriteFieldBegin(field); oprot.WriteString(OsVersion); oprot.WriteFieldEnd(); } if (DeviceBrand != null && __isset.deviceBrand) { field.Name = "deviceBrand"; field.Type = TType.String; field.ID = 7; oprot.WriteFieldBegin(field); oprot.WriteString(DeviceBrand); oprot.WriteFieldEnd(); } if (DeviceModel != null && __isset.deviceModel) { field.Name = "deviceModel"; field.Type = TType.String; field.ID = 8; oprot.WriteFieldBegin(field); oprot.WriteString(DeviceModel); oprot.WriteFieldEnd(); } if (Country != null && __isset.country) { field.Name = "country"; field.Type = TType.String; field.ID = 9; oprot.WriteFieldBegin(field); oprot.WriteString(Country); oprot.WriteFieldEnd(); } if (City != null && __isset.city) { field.Name = "city"; field.Type = TType.String; field.ID = 10; oprot.WriteFieldBegin(field); oprot.WriteString(City); oprot.WriteFieldEnd(); } if (__isset.dateFirstInstalled) { field.Name = "dateFirstInstalled"; field.Type = TType.I64; field.ID = 11; oprot.WriteFieldBegin(field); oprot.WriteI64(DateFirstInstalled); oprot.WriteFieldEnd(); } if (DeviceId != null && __isset.deviceId) { field.Name = "deviceId"; field.Type = TType.String; field.ID = 12; oprot.WriteFieldBegin(field); oprot.WriteString(DeviceId); oprot.WriteFieldEnd(); } if (UserId != null && __isset.userId) { field.Name = "userId"; field.Type = TType.String; field.ID = 13; oprot.WriteFieldBegin(field); oprot.WriteString(UserId); oprot.WriteFieldEnd(); } if (__isset.clickCreatedAt) { field.Name = "clickCreatedAt"; field.Type = TType.I64; field.ID = 14; oprot.WriteFieldBegin(field); oprot.WriteI64(ClickCreatedAt); oprot.WriteFieldEnd(); } oprot.WriteFieldStop(); oprot.WriteStructEnd(); } finally { oprot.DecrementRecursionDepth(); } }