public void Write(TProtocol oprot)
{
TStruct struc = new TStruct("fetchN_result");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (this.__isset.success)
{
if (Success != null)
{
field.Name = "Success";
field.Type = TType.List;
field.ID = 0;
oprot.WriteFieldBegin(field);
{
oprot.WriteListBegin(new TList(TType.String, Success.Count));
foreach (string _iter3 in Success)
{
oprot.WriteString(_iter3);
}
oprot.WriteListEnd();
}
oprot.WriteFieldEnd();
}
}
else if (this.__isset.ex)
{
if (Ex != null)
{
field.Name = "Ex";
field.Type = TType.Struct;
field.ID = 1;
oprot.WriteFieldBegin(field);
Ex.Write(oprot);
oprot.WriteFieldEnd();
}
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}