LINE.Datatypes.TalkService.startUpdateVerification_args.Write C# (CSharp) Method

Write() public method

public Write ( TProtocol oprot ) : void
oprot Thrift.Protocol.TProtocol
return void
      public void Write(TProtocol oprot) {
        TStruct struc = new TStruct("startUpdateVerification_args");
        oprot.WriteStructBegin(struc);
        TField field = new TField();
        if (Region != null && __isset.region) {
          field.Name = "region";
          field.Type = TType.String;
          field.ID = 2;
          oprot.WriteFieldBegin(field);
          oprot.WriteString(Region);
          oprot.WriteFieldEnd();
        }
        if (__isset.carrier) {
          field.Name = "carrier";
          field.Type = TType.I32;
          field.ID = 3;
          oprot.WriteFieldBegin(field);
          oprot.WriteI32((int)Carrier);
          oprot.WriteFieldEnd();
        }
        if (Phone != null && __isset.phone) {
          field.Name = "phone";
          field.Type = TType.String;
          field.ID = 4;
          oprot.WriteFieldBegin(field);
          oprot.WriteString(Phone);
          oprot.WriteFieldEnd();
        }
        if (UdidHash != null && __isset.udidHash) {
          field.Name = "udidHash";
          field.Type = TType.String;
          field.ID = 5;
          oprot.WriteFieldBegin(field);
          oprot.WriteString(UdidHash);
          oprot.WriteFieldEnd();
        }
        if (DeviceInfo != null && __isset.deviceInfo) {
          field.Name = "deviceInfo";
          field.Type = TType.Struct;
          field.ID = 6;
          oprot.WriteFieldBegin(field);
          DeviceInfo.Write(oprot);
          oprot.WriteFieldEnd();
        }
        if (NetworkCode != null && __isset.networkCode) {
          field.Name = "networkCode";
          field.Type = TType.String;
          field.ID = 7;
          oprot.WriteFieldBegin(field);
          oprot.WriteString(NetworkCode);
          oprot.WriteFieldEnd();
        }
        if (Locale != null && __isset.locale) {
          field.Name = "locale";
          field.Type = TType.String;
          field.ID = 8;
          oprot.WriteFieldBegin(field);
          oprot.WriteString(Locale);
          oprot.WriteFieldEnd();
        }
        oprot.WriteFieldStop();
        oprot.WriteStructEnd();
      }
TalkService.startUpdateVerification_args