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