I am building a game that require access to the game server.
How could I use repository pattern and unit of work patterns to access the data on the server via HTTP request?
Below is the interface that I use to send request to the HTTP server.
public interface IRequest{
void Request(string path, WWWForm form, bool isRequireSession = true, Action<JsonData> onSuccess = null, Action<JsonData> onFail = null, Action<JsonData> onError = null);
}
Aucun commentaire:
Enregistrer un commentaire