Skip to content

Commit 83209fe

Browse files
2 files | M dota2/dota_gcmessages_client.proto, M dota2/dota_gcmessages_msgid.proto
1 parent c0b3cc1 commit 83209fe

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

dota2/dota_gcmessages_client.proto

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3403,3 +3403,29 @@ message CMsgClientToGCGetEventRankingResponse {
34033403
optional float percentile = 4;
34043404
optional uint32 final_rank_bucket = 5;
34053405
}
3406+
3407+
message CMsgClientToGCGetEventCoupon {
3408+
optional .EEvent event_id = 1 [default = EVENT_ID_NONE];
3409+
repeated uint32 coupon_ids = 2;
3410+
}
3411+
3412+
message CMsgClientToGCGetEventCouponResponse {
3413+
message Coupon {
3414+
optional uint32 coupon_id = 1;
3415+
optional string coupon_code = 2;
3416+
}
3417+
3418+
enum ResultCode {
3419+
Success = 0;
3420+
InvalidEvent = 1;
3421+
EventNotActive = 2;
3422+
UserIneligible = 3;
3423+
ServerError = 4;
3424+
Timeout = 5;
3425+
MultipleCoupons = 6;
3426+
}
3427+
3428+
optional .CMsgClientToGCGetEventCouponResponse.ResultCode result = 1 [default = Success];
3429+
optional .EEvent event_id = 2 [default = EVENT_ID_NONE];
3430+
repeated .CMsgClientToGCGetEventCouponResponse.Coupon coupons = 3;
3431+
}

dota2/dota_gcmessages_msgid.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,4 +964,6 @@ enum EDOTAGCMsg {
964964
k_EMsgClientToGCClaimGatedEventResponse = 9044;
965965
k_EMsgClientToGCGetEventRanking = 9107;
966966
k_EMsgClientToGCGetEventRankingResponse = 9108;
967+
k_EMsgClientToGCGetEventCoupon = 9109;
968+
k_EMsgClientToGCGetEventCouponResponse = 9110;
967969
}

0 commit comments

Comments
 (0)