aboutsummaryrefslogtreecommitdiff
path: root/pb/external/mi.proto
blob: b4bd844ecaf7f92ece43ef1b3c3b91dab3966daf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// This is a subset of github:Xe/x/proto/mi.proto

syntax = "proto3";
package within.website.x.mi;
option go_package = "xeiaso.net/v4/pb/external/mi";

import "google/protobuf/empty.proto";
import "google/protobuf/timestamp.proto";

// Event is a single event that Xe will be attending.
message Event {
  // The name of the event
  string name = 1;
  // The URL for the event
  string url = 2;
  // The day the event starts
  google.protobuf.Timestamp start_date = 3;
  // The day the event ends
  google.protobuf.Timestamp end_date = 4;
  // The location of the event (human-readable)
  string location = 5;
  // The ID of the event
  int32 id = 6;
  // The description of the event
  string description = 7;
}

// A feed of events, result from mi query.
message EventFeed {
  // The events in the feed
  repeated Event events = 1;
}

// Events lets users fetch the current feed of events that Xe will be attending.
service Events {
  // Get fetches the current feed of upcoming events.
  rpc Get(google.protobuf.Empty) returns (EventFeed);
}