syntax = "proto3";

package codeword;

option go_package = "./codeword_rpc";

message Time {
  int64 from = 1;
  int64 to = 2;
}

service PromoCodeService {
  rpc GetAllPromoActivations(Time) returns (stream PromoActivationResp);
}

message PromoActivationResp {
  message UserTime {
    string UserID = 1;
    int64 Time = 2;
  }
  string ID = 1;
  repeated UserTime Users = 2;
}
