Implement your own Request/Response classes

There are many base classes you can use but the low level base classes is UTorrent.Api.BaseRequest<T> and UTorrent.Api.BaseResponse

...

How to use custom request/response

public class MyResponse : UTorrent.Api.BaseResponse { /* */ }
public class MyRequest : UTorrent.Api.BaseRequest<MyResponse> { /* */ }

public static Main()
{
    MyRequest myRequest = new MyRequest();
    UTorrentClient client = new UTorrentClient("admin", "password");
    var myResponse = client.ProcessRequest(myRequest);
}

Last edited Jun 13, 2013 at 11:59 AM by latop2604, version 3

Comments

No comments yet.