//
        public FeedAttachmentSticker(ActivityAttachment attachment, ulong actionId)
        {
            _sticker        = Stickers.GetById(attachment.id);
            attachment_id   = attachment.id;
            attachment_type = "sitereaction_sticker";
            title           = _sticker.title;

            uri        = $"https://beta.koobeca.com/view.php?action_id={actionId}";
            image_main = _sticker.file_id > 0 ? new FeedImage(_sticker.file_id) : null;
            mode       = (uint)(attachment.mode ? 1 : 0);
        }
Example #2
0
            public Member(UserFull m)
            {
                user_id             = (int)m.user_id;
                username            = m.username;
                displayname         = m.displayname;
                photo_id            = (int)m.photo_id;
                status              = m.status;
                status_date         = m.status_date;
                locale              = m.locale;
                language            = m.language;
                timezone            = m.timezone;
                show_profileviewers = m.show_profileviewers ? 1 : 0;
                level_id            = (int)m.level_id;
                invites_used        = (int)m.invites_used;
                extra_invites       = (int)m.extra_invites;
                enabled             = m.enabled ? 1 : 0;
                verified            = m.verified ? 1 : 0;
                approved            = m.approved ? 1 : 0;
                creation_date       = m.creation_date;
                modified_date       = m.modified_date;
                lastlogin_date      = m.lastlogin_date;
                update_date         = m.update_date;
                member_count        = (int)m.member_count;
                view_count          = (int)m.view_count;
                comment_count       = (int)m.comment_count;
                like_count          = (int)m.like_count;
                coverphoto          = 0;
                coverphotoparams    = m.coverphotoparams;
                view_privacy        = m.view_privacy;
                seao_locationid     = m.seao_locationid;
                location            = m.location;
                friendship_type     = "add_friend";
                if (photo_id != 0)
                {
                    FeedImage img = new FeedImage((uint)photo_id);
                    image = image_normal = image_profile = image_icon = img.src;
                }
                content_url        = $"http://beta.koobeca.com/profile/{user_id}";
                is_member_verified = 0;//TODO

                menus.urlParams = new { user_id };
            }
Example #3
0
    public void AddSpriteToFeed(Sprite sprite, string caption)
    {
        FeedImage newImage = Instantiate(imagePrefab, scrollContent, false);

        newImage.Setup(sprite, caption);
    }