public string Send(List<MemoryGameResult> data, string userSessionID, string gameSessionID, int isGameCompleted, int gameTime, int gameScore, short error) { try { GameServiceProxy GSP = new GameServiceProxy(EGameType.GT_MEMORY_GAME, "", userSessionID, gameSessionID, null); GSP.updateResults(isGameCompleted, gameTime, gameScore, error, ""); return "OK"; } catch (Exception e) { return "FAIL"; } }
public string Send(List<WordScrambleResult> data, string userSessionID, string gameSessionID, int isGameCompleted, int gameTime, int gameScore, short error) { string resultXml = ""; try { XmlDocument document = transformToXml<WordScrambleResult>(data); resultXml = document.InnerXml; GameServiceProxy GSP = new GameServiceProxy(EGameType.GT_WORD_SCRAMBLE, "", userSessionID, gameSessionID, null); GSP.updateResults(isGameCompleted, gameTime, gameScore, error, document.InnerXml); return "OK"; } catch (Exception e) { return "FAIL"; } }
public string Send(List<FillInTheBlanksResult> data, string userSessionID, string gameSessionID, int isGameCompleted, int gameTime, int gameScore, short error) { string resultXml = ""; try { XmlDocument document = transformToXml<FillInTheBlanksResult>(data); resultXml = document.InnerXml; GameServiceProxy GSP = new GameServiceProxy(EGameType.GT_FILL_IN_THE_BLANKS, "", userSessionID, gameSessionID, null); GSP.updateResults(isGameCompleted, gameTime, gameScore, error, document.InnerXml); return "OK: " + resultXml; } catch (Exception e) { return "FAIL: " + resultXml; } }