
package info.metadude.java.library.brockman.models;

import java.util.List;

public class Room {

    public final String display;

    public final String link;

    public final String schedulename;

    public final String slug;

    public final List<Stream> streams;

    public final String thumb;

    public Room(String display,
                String link,
                String schedulename,
                String slug,
                List<Stream> streams,
                String thumb) {
        this.display = display;
        this.link = link;
        this.schedulename = schedulename;
        this.slug = slug;
        this.streams = streams;
        this.thumb = thumb;
    }

    @Override
    public boolean equals(Object other) {
        if (this == other) {
            return true;
        }
        if (other == null || getClass() != other.getClass()) {
            return false;
        }
        Room room = (Room) other;
        return !(display != null ? !display.equals(room.display) : room.display != null) &&
                !(link != null ? !link.equals(room.link) : room.link != null) &&
                !(schedulename != null ? !schedulename.equals(room.schedulename) : room.schedulename != null) &&
                !(slug != null ? !slug.equals(room.slug) : room.slug != null) &&
                !(streams != null ? !streams.equals(room.streams) : room.streams != null) &&
                !(thumb != null ? !thumb.equals(room.thumb) : room.thumb != null);
    }

    @Override
    public int hashCode() {
        int result = display != null ? display.hashCode() : 0;
        result = 31 * result + (link != null ? link.hashCode() : 0);
        result = 31 * result + (schedulename != null ? schedulename.hashCode() : 0);
        result = 31 * result + (slug != null ? slug.hashCode() : 0);
        result = 31 * result + (streams != null ? streams.hashCode() : 0);
        result = 31 * result + (thumb != null ? thumb.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "Room{" +
                "display='" + display + '\'' +
                ", link='" + link + '\'' +
                ", schedulename='" + schedulename + '\'' +
                ", slug='" + slug + '\'' +
                ", streams=" + streams +
                ", thumb='" + thumb + '\'' +
                '}';
    }

}

@@ -47,16 +47,49 @@
 odels;%0A%0A
+import com.squareup.moshi.Json;%0A%0A
 import j
@@ -103,16 +103,16 @@
 l.List;%0A
-
 %0Apublic 
@@ -190,16 +190,49 @@
  link;%0A%0A
+    @Json(name = %22scheduleName%22)%0A
     publ
@@ -251,25 +251,25 @@
 ing schedule
-n
+N
 ame;%0A%0A    pu
@@ -457,17 +457,17 @@
 schedule
-n
+N
 ame,%0A   
@@ -637,25 +637,25 @@
 his.schedule
-n
+N
 ame = schedu
@@ -656,17 +656,17 @@
 schedule
-n
+N
 ame;%0A   
@@ -1199,33 +1199,33 @@
       !(schedule
-n
+N
 ame != null ? !s
@@ -1227,25 +1227,25 @@
  ? !schedule
-n
+N
 ame.equals(r
@@ -1256,17 +1256,17 @@
 schedule
-n
+N
 ame) : r
@@ -1269,33 +1269,33 @@
  : room.schedule
-n
+N
 ame != null) &&%0A
@@ -1768,25 +1768,25 @@
  + (schedule
-n
+N
 ame != null 
@@ -1795,17 +1795,17 @@
 schedule
-n
+N
 ame.hash
@@ -2249,17 +2249,17 @@
 schedule
-n
+N
 ame='%22 +
@@ -2267,17 +2267,17 @@
 schedule
-n
+N
 ame + '%5C

Use camelcase for field name.