Skip to content

Instantly share code, notes, and snippets.

@macalinao
Created January 26, 2017 04:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macalinao/84e5f103f4c1429d20424e396764d6e9 to your computer and use it in GitHub Desktop.
Save macalinao/84e5f103f4c1429d20424e396764d6e9 to your computer and use it in GitHub Desktop.
syntax = "proto3";
package asuna.proto;
import "asuna/charon.proto";
import "asuna/enums.proto";
import "asuna/ids.proto";
import "asuna/rank.proto";
import "google/protobuf/timestamp.proto";
message CharonRpc {
message MatchRequest {
MatchId match = 1;
}
message MatchListRequest {
SummonerId summoner = 1;
repeated Queue queues = 2;
repeated Season seasons = 3;
}
message MatchListResponse {
message MatchInfo {
MatchId match_id = 1;
google.protobuf.Timestamp timestamp = 2;
Season season = 3;
}
repeated MatchInfo matches = 1;
}
message RankingsRequest {
Region region = 1;
repeated uint64 summoner_ids = 2;
}
message RankingsResponse {
map<uint64, Ranking> rankings = 1;
}
message StaticRequest {
Locale locale = 1;
Region region = 2;
string version = 3;
}
message StaticResponse {
map<uint32,CharonData.Static.Champion> champions = 1;
map<uint32,CharonData.Static.Item> items = 2;
map<uint32,CharonData.Static.Mastery> masteries = 3;
CharonData.Static.MasteryTrees mastery_trees = 4;
map<uint32,CharonData.Static.Rune> runes = 5;
map<uint32,CharonData.Static.Spell> summoner_spells = 6;
}
message StaticVersionsRequest {
Region region = 1;
}
message StaticVersionsResponse {
repeated string versions = 1;
}
}
service Charon {
// GetMatch corresponds to Riot's get match.
rpc GetMatch(CharonRpc.MatchRequest) returns (CharonData.Match);
// GetMatchList gets the Riot match list.
rpc GetMatchList(CharonRpc.MatchListRequest) returns (CharonRpc.MatchListResponse);
// GetRankings gets leagues of summoners.
rpc GetRankings(CharonRpc.RankingsRequest) returns (CharonRpc.RankingsResponse);
// GetStaticChampions gets static data for champions, items, masteries, runes, and summoner spells
rpc GetStatic(CharonRpc.StaticRequest) returns (CharonRpc.StaticResponse);
// GetStaticVersions gets a list of game versions
rpc GetStaticVersions(CharonRpc.StaticVersionsRequest) returns (CharonRpc.StaticVersionsResponse);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment