コード例 #1
0
        public static OKMetadataRequest Get(string url, OKRequestHandler <OKMetadataResponse> handler)
        {
            OKMetadataRequest request = new OKMetadataRequest(url);

            request.Get(handler);
            return(request);
        }
コード例 #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;
         });
     }
 }
コード例 #3
0
 public static OKMetadataRequest Get(string url, OKRequestHandler<OKMetadataResponse> handler)
 {
     OKMetadataRequest request = new OKMetadataRequest(url);
     request.Get(handler);
     return request;
 }