Evernote.EDAM.NoteStore.NoteStore.expungeNote_result.Write C# (CSharp) Méthode

Write() public méthode

public Write ( TProtocol oprot ) : void
oprot Thrift.Protocol.TProtocol
Résultat void
      public void Write(TProtocol oprot) {
        TStruct struc = new TStruct("expungeNote_result");
        oprot.WriteStructBegin(struc);
        TField field = new TField();

        if (this.__isset.success) {
          field.Name = "Success";
          field.Type = TType.I32;
          field.ID = 0;
          oprot.WriteFieldBegin(field);
          oprot.WriteI32(Success);
          oprot.WriteFieldEnd();
        } else if (this.__isset.userException) {
          if (UserException != null) {
            field.Name = "UserException";
            field.Type = TType.Struct;
            field.ID = 1;
            oprot.WriteFieldBegin(field);
            UserException.Write(oprot);
            oprot.WriteFieldEnd();
          }
        } else if (this.__isset.systemException) {
          if (SystemException != null) {
            field.Name = "SystemException";
            field.Type = TType.Struct;
            field.ID = 2;
            oprot.WriteFieldBegin(field);
            SystemException.Write(oprot);
            oprot.WriteFieldEnd();
          }
        } else if (this.__isset.notFoundException) {
          if (NotFoundException != null) {
            field.Name = "NotFoundException";
            field.Type = TType.Struct;
            field.ID = 3;
            oprot.WriteFieldBegin(field);
            NotFoundException.Write(oprot);
            oprot.WriteFieldEnd();
          }
        }
        oprot.WriteFieldStop();
        oprot.WriteStructEnd();
      }