public static OKMetadataRequest Get(string url, OKRequestHandler <OKMetadataResponse> handler)
        {
            OKMetadataRequest request = new OKMetadataRequest(url);

            request.Get(handler);
            return(request);
        }
Esempio n. 2
0
 public void LoadMetadataBuffer(Action <OKScore> handler)
 {
     if (MetadataLocation != null)
     {
         _metadataRequest = OKMetadataRequest.Get(MetadataLocation, res => {
             if (res.Status == OKIOStatus.Succeeded)
             {
                 MetadataBuffer = res.Raw;
             }
             handler(this);
             _metadataRequest = null;
         });
     }
 }
Esempio n. 3
0
 public static OKMetadataRequest Get(string url, OKRequestHandler<OKMetadataResponse> handler)
 {
     OKMetadataRequest request = new OKMetadataRequest(url);
     request.Get(handler);
     return request;
 }