Skip to content

Commit

Permalink
letter -> message
Browse files Browse the repository at this point in the history
  • Loading branch information
v.skukov authored and flosca committed Apr 23, 2018
1 parent d96b4d7 commit 1afbf75
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions proto/Documents/Document.proto
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@ enum RecipientResponseStatus {
}

message Origin {
required LetterType LetterType = 1;
required string LetterId = 2;
required MessageType MessageType = 1;
required string MessageId = 2;
}

enum LetterType {
enum MessageType {
Unknown = 0;
Letter = 1;
Message = 1;
Draft = 2;
Template = 3;
}
28 changes: 14 additions & 14 deletions src/Proto/Documents/Document.proto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -753,19 +753,19 @@ public partial class Origin : global::ProtoBuf.IExtensible
{
public Origin() {}

private Diadoc.Api.Proto.Documents.LetterType _LetterType;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"LetterType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public Diadoc.Api.Proto.Documents.LetterType LetterType
private Diadoc.Api.Proto.Documents.MessageType _MessageType;
[global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"MessageType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public Diadoc.Api.Proto.Documents.MessageType MessageType
{
get { return _LetterType; }
set { _LetterType = value; }
get { return _MessageType; }
set { _MessageType = value; }
}
private string _LetterId;
[global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"LetterId", DataFormat = global::ProtoBuf.DataFormat.Default)]
public string LetterId
private string _MessageId;
[global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"MessageId", DataFormat = global::ProtoBuf.DataFormat.Default)]
public string MessageId
{
get { return _LetterId; }
set { _LetterId = value; }
get { return _MessageId; }
set { _MessageId = value; }
}
private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
Expand Down Expand Up @@ -924,15 +924,15 @@ public enum RecipientResponseStatus
InvalidRecipientSignature = 5
}

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

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

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

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

0 comments on commit 1afbf75

Please sign in to comment.