PageRenderTime 46ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 1ms

/MalApi/MalUserLookupResults.cs

https://bitbucket.org/LHCGreg/mal-api
C# | 41 lines | 19 code | 4 blank | 18 comment | 0 complexity | dab1e798be1cf178d63e799186f4d80e MD5 | raw file
Possible License(s): Apache-2.0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace MalApi
  6. {
  7. public class MalUserLookupResults
  8. {
  9. public ICollection<MyAnimeListEntry> AnimeList { get; private set; }
  10. public int UserId { get; private set; }
  11. /// <summary>
  12. /// The user name as it appears in MAL. This might differ in capitalization from the username that was searched for.
  13. /// </summary>
  14. public string CanonicalUserName { get; private set; }
  15. public MalUserLookupResults(int userId, string canonicalUserName, ICollection<MyAnimeListEntry> animeList)
  16. {
  17. UserId = userId;
  18. CanonicalUserName = canonicalUserName;
  19. AnimeList = animeList;
  20. }
  21. }
  22. }
  23. /*
  24. Copyright 2012 Greg Najda
  25. Licensed under the Apache License, Version 2.0 (the "License");
  26. you may not use this file except in compliance with the License.
  27. You may obtain a copy of the License at
  28. http://www.apache.org/licenses/LICENSE-2.0
  29. Unless required by applicable law or agreed to in writing, software
  30. distributed under the License is distributed on an "AS IS" BASIS,
  31. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  32. See the License for the specific language governing permissions and
  33. limitations under the License.
  34. */