コード例 #1
0
 /// <summary>
 /// Initializes new client with authentication.
 /// </summary>
 /// <param name="user">myanimelist Username</param>
 /// <param name="pass">myanimelist Password</param>
 public API(string user, string pass) : base(user, pass)
 {
     AnimeController  = new Controllers.AnimeController(this);
     MangaController  = new Controllers.MangaController(this);
     UsersController  = new Controllers.UsersController(this);
     SearchController = new Controllers.SearchController(this);
 }
コード例 #2
0
 /// <summary>
 /// Initializes new client without authentication.
 /// <para>Using methods that require Auth will throw an exception e.g. SearchFor, AddAnime, etc..</para>
 /// </summary>
 public API() : base()
 {
     AnimeController  = new Controllers.AnimeController(this);
     MangaController  = new Controllers.MangaController(this);
     UsersController  = new Controllers.UsersController(this);
     SearchController = new Controllers.SearchController(this);
 }