package com.creatubbles.api.model.hashtag;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.jasminb.jsonapi.annotations.Id;
import com.github.jasminb.jsonapi.annotations.Type;

@Type("hashtags")
public class Hashtag {
    @Id
    private String id;

    @JsonProperty("is_official")
    private Boolean official = Boolean.FALSE;

    @JsonProperty("avatar_image_url")
    private AvatarImage avatarImage;

    @NonNull
    public String getId() {
        return id;
    }

    @Nullable
    public Boolean getOfficial() {
        return official;
    }

    @Nullable
    public AvatarImage getAvatarImage() {
        return avatarImage;
    }

    @Override
    public String toString() {
        return "Hashtag{" +
                "id='" + id + '\'' +
                ", official=" + official +
                ", avatarImage=" + avatarImage +
                '}';
    }
}

@@ -420,24 +420,8 @@
 cial
- = Boolean.FALSE
 ;%0A%0A 
@@ -495,16 +495,162 @@
 Image;%0A%0A
+    @JsonProperty(%22taggings_count%22)%0A    private Integer taggingsCount;%0A%0A    @JsonProperty(%22followers_count%22)%0A    private Integer followersCount;%0A%0A
     @Non
@@ -876,24 +876,208 @@
 age;%0A    %7D%0A%0A
+    @Nullable%0A    public Integer getTaggingsCount() %7B%0A        return taggingsCount;%0A    %7D%0A%0A    @Nullable%0A    public Integer getFollowersCount() %7B%0A        return followersCount;%0A    %7D%0A%0A
     @Overrid
@@ -1266,16 +1266,124 @@
 Image +%0A
+                %22, taggingsCount=%22 + taggingsCount +%0A                %22, followersCount=%22 + followersCount +%0A
         

Add new fields to hashtag model