add ability to send sms in emoji (#165)

This commit is contained in:
Asim Aslam
2021-06-17 18:24:54 +01:00
committed by GitHub
parent a71e51581a
commit e258e98ba5
7 changed files with 291 additions and 22 deletions

View File

@@ -8,6 +8,7 @@ service Emoji {
rpc Find(FindRequest) returns (FindResponse) {}
rpc Flag(FlagRequest) returns (FlagResponse) {}
rpc Print(PrintRequest) returns (PrintResponse) {}
rpc Send(SendRequest) returns (SendResponse) {}
}
// Find an emoji by its alias e.g :beer:
@@ -43,3 +44,18 @@ message PrintResponse {
// text with rendered emojis
string text = 1;
}
// Send an emoji to anyone via SMS
message SendRequest {
// who the message is from e.g Alice
string from = 1;
// phone number to send to (including international dialing code)
string to = 2;
// message to send including emoji aliases
string message = 3;
}
message SendResponse {
// whether or not it succeeded
bool success = 1;
}