Beispiel #1
0
 public static UniRx.IObservable <string> Upload(this byte[] binary, string url, Action <string> completeCallback, UniRx.IProgress <float> progressCallback, Dictionary <string, string> headers = null)
 {
     UniRx.IObservable <string> obs = ObservableWWW.Post(url, binary, headers, progressCallback);
     obs.Subscribe(completeCallback);
     return(obs);
 }
Beispiel #2
0
 public static UniRx.IObservable <string> SerialiseAndUploadUsingAsURL(this string url, object obj, Action <string> completeCallback, UniRx.IProgress <float> progressCallback, Dictionary <string, string> headers = null)
 {
     return(Serialisation.ToBinary(obj).Upload(url, completeCallback, progressCallback, headers));
 }
Beispiel #3
0
 public static UniRx.IObservable <byte[]> DownloadUsingAsURL(this string url, Action <byte[]> completeCallback, UniRx.IProgress <float> progressCallback, Dictionary <string, string> headers = null)
 {
     UniRx.IObservable <byte[]> obs = ObservableWWW.GetAndGetBytes(url, headers, progressCallback);
     obs.Subscribe(completeCallback);
     return(obs);
 }
Beispiel #4
0
 public static UniRx.IObservable <string> UploadUsingAsURL(this string url, byte[] binary, Action <string> completeCallback, UniRx.IProgress <float> progressCallback, Dictionary <string, string> headers = null)
 {
     return(binary.Upload(url, completeCallback, progressCallback, headers));
 }
Beispiel #5
0
 public static UniRx.IObservable <byte[]> PostAndRetrieve(this byte[] postData, string url, Action <byte[]> completeCallback, UniRx.IProgress <float> progressCallback, Dictionary <string, string> headers = null)
 {
     return(url.PostAndRetrieveUsingAsURL(postData, completeCallback, progressCallback, headers));
 }