これが私がやろうとしていることです。
クラス1:ベースクラス
private void Update()
{
base.Update(Updated);
}
private void Updated(IRestResponse<thisClass> response)
{
....
}
..。
ベースクラス:
public void Update(<T> callback)
{
RestClient client = new RestClient("https://www.googleapis.com");
client.Authenticator = new OAuth2AuthorizationRequestHeaderAuthenticator(App.AuthenticationResult.access_token);
var request = new RestRequest(path, Method.GET);
client.ExecuteAsync<...T...>(request, callback);
}
基本的に、同じ構造に従う複数のクラスのベースクラスでUpdateを再利用できるようにしたいと考えています。