Exemplo n.º 1
0
 public static IObservable <T> SendRequest <T>(AnsuzRequest request) where T : AnsuzRequest, new()
 {
     return(Observable.FromCoroutine <T>(observer =>
                                         new AnsuzTask <T>(Ansuz.Instance, request)
                                         .PublishMessage(observer))
            .SubscribeOnMainThread());
 }
Exemplo n.º 2
0
 public AnsuzTask(Ansuz instance, AnsuzRequest request)
 {
     ansuz        = instance;
     _requestJson = JsonUtility.ToJson(request);
 }