syntax = "proto3";

package crabs.pinned_message;

import "google/api/annotations.proto";

option go_package = "pkg/proto";

service pinnedMessage {
  rpc Ping(PingReq) returns (PingRsp) {
    option (google.api.http) = {
      get: "/ping"
    };
  }

  rpc GetSchedule(GetScheduleReq) returns (GetScheduleRsp) {
    option (google.api.http) = {
      get: "/schedule"
    };
  }
}

message PingReq {}

message PingRsp {}

message GetScheduleReq {}

message GetScheduleRsp {
  string       update_time = 1;
  repeated Day days        = 2;
}

message Day {
  string               date         = 1;
  repeated Performance performances = 2;
}

message Performance {
  string          time_collection = 1;
  string          time_start      = 2;
  string          place           = 3;
  string          name            = 4;
  repeated Number numbers         = 5;
  string          costumes        = 6;
}

message Number {
  string name = 1;
}
