|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
namespace CChess
{
[ServiceContract(Namespace = "CChessService")]
public interface ICChessService
{
[OperationContract]
void Login(CChessPlayer new_player);
[OperationContract]
void UpdateUserActivity();
[OperationContract]
List<CChessPlayer> GetOnlineUsers();
[OperationContract]
void SendMessage(String message);
[OperationContract]
List<ChatMessage> GetNewMessages(int unix_timestamp);
[OperationContract]
List<ChatMessage> GetLastNMessages(int n);
[OperationContract]
void CreateNewGame(CChessGameColors color);
[OperationContract]
List<CChessGamesPlayers> GetCurrentGamePlayers();
[OperationContract]
void AddToGame(long game_id, CChessGameColors color);
[OperationContract]
CChessGamesPlayers GetOpponent();
[OperationContract]
CChessGamesPlayers GetYou();
[OperationContract]
long MovePiece(CChessMove move);
[OperationContract]
CChessMove GetLastMove(long last_move_id);
[OperationContract]
List<CChessMove> GetAllMoves(long game_id);
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
My name is Julian, I was born in Argentina, but I've been living in Israel for 6 years already. I'm a high school student in my last year, I study computer science, physics and math.
Other than programming, I really enjoy watching anime and reading manga.