reversi 💮 💯

This commit is contained in:
syuilo
2018-06-17 08:10:54 +09:00
parent 03f20599ba
commit 1ef66c962a
48 changed files with 197 additions and 197 deletions

View File

@ -55,7 +55,7 @@ export default function(type, data): Notification {
icon: data.user.avatarUrl + '?thumbnail&size=64'
};
case 'othello_invited':
case 'reversi_invited':
return {
title: '対局への招待があります',
body: `${getUserName(data.parent)}さんから`,

View File

@ -1,9 +1,9 @@
import Stream from './stream';
import MiOS from '../../../mios';
export class OthelloGameStream extends Stream {
export class ReversiGameStream extends Stream {
constructor(os: MiOS, me, game) {
super(os, 'othello-game', {
super(os, 'reversi-game', {
i: me ? me.token : null,
game: game.id
});

View File

@ -2,15 +2,15 @@ import StreamManager from './stream-manager';
import Stream from './stream';
import MiOS from '../../../mios';
export class OthelloStream extends Stream {
export class ReversiStream extends Stream {
constructor(os: MiOS, me) {
super(os, 'othello', {
super(os, 'reversi', {
i: me.token
});
}
}
export class OthelloStreamManager extends StreamManager<OthelloStream> {
export class ReversiStreamManager extends StreamManager<ReversiStream> {
private me;
private os: MiOS;
@ -23,7 +23,7 @@ export class OthelloStreamManager extends StreamManager<OthelloStream> {
public getConnection() {
if (this.connection == null) {
this.connection = new OthelloStream(this.os, this.me);
this.connection = new ReversiStream(this.os, this.me);
}
return this.connection;