Skip to content

Commit

Permalink
Merge pull request #152 from alogicman/master
Browse files Browse the repository at this point in the history
Add ProxySignatureStatus to Document
  • Loading branch information
einfoman authored May 3, 2017
2 parents b4aa5e2 + 70c4324 commit ce32da5
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
10 changes: 10 additions & 0 deletions proto/Documents/Document.proto
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ message Document {
optional UniversalTransferDocument.UniversalCorrectionDocumentRevisionMetadata UniversalCorrectionDocumentRevisionMetadata = 59;
optional string ResolutionRouteId = 60 [default = ""];
optional string AttachmentVersion = 61;
optional ProxySignatureStatus ProxySignatureStatus = 62;
}

message ResolutionStatus {
Expand Down Expand Up @@ -116,3 +117,12 @@ enum SenderSignatureStatus {
SenderSignatureCheckedAndValid = 3;
SenderSignatureCheckedAndInvalid = 4;
}

enum ProxySignatureStatus {
UnknownProxySignatureStatus = 0;
ProxySignatureStatusNone = 1;
WaitingForProxySignature = 2;
WithProxySignature = 3;
ProxySignatureRejected = 4;
InvalidProxySignature = 5;
}
32 changes: 32 additions & 0 deletions src/Proto/Documents/Document.proto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,15 @@ public string AttachmentVersion
get { return _AttachmentVersion; }
set { _AttachmentVersion = value; }
}

private Diadoc.Api.Proto.Documents.ProxySignatureStatus _ProxySignatureStatus = Diadoc.Api.Proto.Documents.ProxySignatureStatus.UnknownProxySignatureStatus;
[global::ProtoBuf.ProtoMember(62, IsRequired = false, Name=@"ProxySignatureStatus", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
[global::System.ComponentModel.DefaultValue(Diadoc.Api.Proto.Documents.ProxySignatureStatus.UnknownProxySignatureStatus)]
public Diadoc.Api.Proto.Documents.ProxySignatureStatus ProxySignatureStatus
{
get { return _ProxySignatureStatus; }
set { _ProxySignatureStatus = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
Expand Down Expand Up @@ -678,4 +687,27 @@ public enum SenderSignatureStatus
SenderSignatureCheckedAndInvalid = 4
}

[global::ProtoBuf.ProtoContract(Name=@"ProxySignatureStatus")]
public enum ProxySignatureStatus
{

[global::ProtoBuf.ProtoEnum(Name=@"UnknownProxySignatureStatus", Value=0)]
UnknownProxySignatureStatus = 0,

[global::ProtoBuf.ProtoEnum(Name=@"ProxySignatureStatusNone", Value=1)]
ProxySignatureStatusNone = 1,

[global::ProtoBuf.ProtoEnum(Name=@"WaitingForProxySignature", Value=2)]
WaitingForProxySignature = 2,

[global::ProtoBuf.ProtoEnum(Name=@"WithProxySignature", Value=3)]
WithProxySignature = 3,

[global::ProtoBuf.ProtoEnum(Name=@"ProxySignatureRejected", Value=4)]
ProxySignatureRejected = 4,

[global::ProtoBuf.ProtoEnum(Name=@"InvalidProxySignature", Value=5)]
InvalidProxySignature = 5
}

}

0 comments on commit ce32da5

Please sign in to comment.