示例#1
0
        internal IllustPage(Illust illust, int index, PixivClient client, MetaPageImageUrls urls)
        {
            Illust  = illust;
            Index   = index;
            _client = client;

            _original     = urls.Original;
            _medium       = urls.Medium;
            _squareMedium = urls.SquareMedium;
            _large        = urls.Large;
        }
示例#2
0
        internal IllustPage(Illust illust, int index, PixivClient client, PreviewImageUrls urls, Uri original)
        {
            Illust  = illust;
            Index   = index;
            _client = client;

            _original     = original;
            _medium       = urls.Medium;
            _squareMedium = urls.SquareMedium;
            _large        = urls.Large;
        }
示例#3
0
 public Comment(PixivClient client, Illust illust, IllustComment api)
 {
     _client         = client;
     _illust         = illust;
     Id              = api.Id;
     Content         = api.Comment;
     Created         = api.Date;
     User            = new UserInfo(client, api.User);
     ParentCommentId = api.ParentComment.Id switch
     {
         0 => null,
         int other => other
     };
 }