package com.mrprona.dota2assitant.stream.api.twitch;

import com.mrprona.dota2assitant.base.entity.HasId;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.Map;

/**
 * User: Histler
 * Date: 25.02.14
 */
public class TwitchChannel implements HasId, Serializable {
    @SerializedName("_id")
    private long id;
    @SerializedName("_links")
    private Map<String, String> links;
    private String background;
    private String banner;
    @SerializedName("created_at")
    private String createdAt;
    private Long delay;
    @SerializedName("display_name")
    private String displayName;
    private Integer followers;
    private String game;
    private String logo;
    private String name;
    private String status;
    @SerializedName("updated_at")
    private String updatedAt;
    private String url;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Map<String, String> getLinks() {
        return links;
    }

    public void setLinks(Map<String, String> links) {
        this.links = links;
    }

    public String getBackground() {
        return background;
    }

    public void setBackground(String background) {
        this.background = background;
    }

    public String getBanner() {
        return banner;
    }

    public void setBanner(String banner) {
        this.banner = banner;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public Long getDelay() {
        return delay;
    }

    public void setDelay(Long delay) {
        this.delay = delay;
    }

    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public Integer getFollowers() {
        return followers;
    }

    public void setFollowers(Integer followers) {
        this.followers = followers;
    }

    public String getGame() {
        return game;
    }

    public void setGame(String game) {
        this.game = game;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(String updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return displayName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TwitchChannel channel = (TwitchChannel) o;

        if (name != null ? !name.equals(channel.name) : channel.name != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return name != null ? name.hashCode() : 0;
    }
}

@@ -47,16 +47,42 @@
 witch;%0A%0A
+import android.util.Log;%0A%0A
 import c
@@ -3283,32 +3283,95 @@
 ) return false;%0A
+        Log.d(%22TEST%22, %22equals() called with: o = %5B%22 + o + %22%5D%22);
 %0A        return 

Test submit new branch