Skip to content

Commit

Permalink
Merge pull request #1138 from diadoc/ddcore-8608-add-event-types-to-b…
Browse files Browse the repository at this point in the history
…ox-counteragent-event

DDCORE-8608: Add EventTypes to BoxCounteragentEvent
  • Loading branch information
AsakyraZ authored Jul 9, 2024
2 parents da014cb + 8db0e36 commit 637c6c4
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 0 deletions.
20 changes: 20 additions & 0 deletions proto/Events/CounteragentEventType.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package Diadoc.Api.Proto.Events;

enum CounteragentEventType
{
UnknownCounteragentEventType = 0;
IInvitedCounteragent = 1;
CounteragentInvitedMe = 2;
CounteragentAcceptedInvitation = 3;
IAcceptedInvitation = 4;
IWithdrewInvitation = 5;
CounteragentWithdrewInvitation = 6;
IRejectedInvitation = 7;
CounteragentRejectedInvitation = 8;
IBrokeUpWithCounteragent = 9;
CounteragentBrokeUpWithMe = 10;
IForgotCounteragent = 11;
CounteragentForgotMe = 12;
IMadeCounteragent = 13;
CounteragentMadeMe = 14;
}
2 changes: 2 additions & 0 deletions proto/Events/DiadocCounteragent-GetApi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import "Counteragent.proto";
import "TotalCountType.proto";
import "DocumentId.proto";
import "Events/CounteragentEventType.proto";

package Diadoc.Api.Proto.Events;

Expand All @@ -18,6 +19,7 @@ message BoxCounteragentEvent {
required string EventId = 1;
optional CounteragentInfo Counteragent = 2;
optional string IndexKey = 3;
repeated CounteragentEventType EventTypes = 4;
}

message CounteragentInfo {
Expand Down
63 changes: 63 additions & 0 deletions src/Proto/Events/CounteragentEventType.proto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

// Generated from: Events/CounteragentEventType.proto
namespace Diadoc.Api.Proto.Events
{
[global::ProtoBuf.ProtoContract(Name=@"CounteragentEventType")]
public enum CounteragentEventType
{

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

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

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

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

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

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

[global::ProtoBuf.ProtoEnum(Name=@"CounteragentWithdrewInvitation", Value=6)]
CounteragentWithdrewInvitation = 6,

[global::ProtoBuf.ProtoEnum(Name=@"IRejectedInvitation", Value=7)]
IRejectedInvitation = 7,

[global::ProtoBuf.ProtoEnum(Name=@"CounteragentRejectedInvitation", Value=8)]
CounteragentRejectedInvitation = 8,

[global::ProtoBuf.ProtoEnum(Name=@"IBrokeUpWithCounteragent", Value=9)]
IBrokeUpWithCounteragent = 9,

[global::ProtoBuf.ProtoEnum(Name=@"CounteragentBrokeUpWithMe", Value=10)]
CounteragentBrokeUpWithMe = 10,

[global::ProtoBuf.ProtoEnum(Name=@"IForgotCounteragent", Value=11)]
IForgotCounteragent = 11,

[global::ProtoBuf.ProtoEnum(Name=@"CounteragentForgotMe", Value=12)]
CounteragentForgotMe = 12,

[global::ProtoBuf.ProtoEnum(Name=@"IMadeCounteragent", Value=13)]
IMadeCounteragent = 13,

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

}
8 changes: 8 additions & 0 deletions src/Proto/Events/DiadocCounteragent-GetApi.proto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// Note: requires additional types generated from: Counteragent.proto
// Note: requires additional types generated from: TotalCountType.proto
// Note: requires additional types generated from: DocumentId.proto
// Note: requires additional types generated from: Events/CounteragentEventType.proto
namespace Diadoc.Api.Proto.Events
{
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"BoxCounteragentEventList")]
Expand Down Expand Up @@ -76,6 +77,13 @@ public string IndexKey
get { return _IndexKey; }
set { _IndexKey = value; }
}
private readonly global::System.Collections.Generic.List<Diadoc.Api.Proto.Events.CounteragentEventType> _EventTypes = new global::System.Collections.Generic.List<Diadoc.Api.Proto.Events.CounteragentEventType>();
[global::ProtoBuf.ProtoMember(4, Name=@"EventTypes", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
public global::System.Collections.Generic.List<Diadoc.Api.Proto.Events.CounteragentEventType> EventTypes
{
get { return _EventTypes; }
}

private global::ProtoBuf.IExtension extensionObject;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
{ return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
Expand Down

0 comments on commit 637c6c4

Please sign in to comment.