using System; using System.Collections.Generic; using SUISS.Storage; namespace SUISS.Cloud { public class GameInfo : IGameInfo, IStorable { public GameInfo(string name, IDictionary data) { this.Name = name; this.Data = data; } public GameInfo() { } public IDictionary Data { get; private set; } public string Name { get; private set; } public void FromStorage(IDictionary dict) { this.Name = (string)dict["gameName"]; this.Data = (IDictionary)dict["gameData"]; } public IDictionary ToStorage() { return new Dictionary { { "gameName", this.Name }, { "gameData ", this.Data } }; } } }