Advertisement
Guest User

Untitled

a guest
Jul 12th, 2015
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 11.71 KB | None | 0 0
  1.     public class Twitch_Stream {
  2.    
  3.         boolean online;
  4.         int broadcast_part;
  5.         boolean featured;
  6.         boolean channel_subscription;
  7.         String id;
  8.         String category;
  9.         String title;
  10.         int channel_count;
  11.         int video_height;
  12.         int site_count;
  13.         boolean embed_enabled;
  14.         String up_time;
  15.         String meta_game;
  16.         String format;
  17.         int embed_count;
  18.         String stream_type;
  19.         boolean abuse_reported;
  20.         int video_width;
  21.         String geo;
  22.         String name;
  23.         String language;
  24.         int stream_count;
  25.         double video_bitrate;
  26.         String broadcaster;
  27.         int channel_view_count;
  28.         String username;
  29.         String status;
  30.         String channel_url;
  31.         boolean producer;
  32.         String subcategory_title;
  33.         String screen_cap_url_large;
  34.         String screen_cap_url_small;
  35.         String screen_cap_url_medium;
  36.         String screen_cap_url_huge;
  37.         String timezone;
  38.         String category_title;
  39.         int views_count;
  40.    
  41.         public void load(JsonObject job) {
  42.             setBroadcast_part(job.get("broadcast_part").getAsInt());
  43.             setFeatured(job.get("featured").getAsBoolean());
  44.             setChannel_subscription(job.get("channel_subscription").getAsBoolean());
  45.             setId(job.get("id").getAsString());
  46.             setCategory(job.get("category").getAsString());
  47.             setTitle(job.get("title").getAsString());
  48.             setChannel_count(job.get("channel_count").getAsInt());
  49.             setVideo_height(job.get("video_height").getAsInt());
  50.             setSite_count(job.get("site_count").getAsInt());
  51.             setEmbed_enabled(job.get("embed_enabled").getAsBoolean());
  52.             setUp_time(job.get("up_time").getAsString());
  53.             setMeta_game(job.get("meta_game").getAsString());
  54.             setFormat(job.get("format").getAsString());
  55.             setEmbed_count(job.get("embed_count").getAsInt());
  56.             setStream_type(job.get("stream_type").getAsString());
  57.             setAbuse_reported(job.get("abuse_reported").getAsBoolean());
  58.             setVideo_width(job.get("video_width").getAsInt());
  59.             setGeo(job.get("geo").getAsString());
  60.             setName(job.get("name").getAsString());
  61.             setLanguage(job.get("language").getAsString());
  62.             setStream_count(job.get("stream_count").getAsInt());
  63.             setVideo_bitrate(job.get("video_bitrate").getAsDouble());
  64.             setBroadcaster(job.get("broadcaster").getAsString());
  65.             setChannel_view_count(job.get("channel_view_count").getAsInt());
  66.    
  67.             setUsername(job.get("channel").getAsJsonObject().get("login").getAsString());
  68.             setTitle(job.get("channel").getAsJsonObject().get("status").getAsString());
  69.             setChannel_url(job.get("channel").getAsJsonObject().get("channel_url").getAsString());
  70.             setProducer(job.get("channel").getAsJsonObject().get("producer").getAsBoolean());
  71.    
  72.             setSubcategory_title(job.get("channel").getAsJsonObject().get("subcategory_title").getAsString());
  73.             setScreen_cap_url_large(job.get("channel").getAsJsonObject().get("screen_cap_url_large").getAsString());
  74.             setScreen_cap_url_small(job.get("channel").getAsJsonObject().get("screen_cap_url_small").getAsString());
  75.             setScreen_cap_url_medium(job.get("channel").getAsJsonObject().get("screen_cap_url_medium").getAsString());
  76.             setScreen_cap_url_huge(job.get("channel").getAsJsonObject().get("screen_cap_url_huge").getAsString());
  77.             setTimezone(job.get("channel").getAsJsonObject().get("timezone").getAsString());
  78.             setCategory_title(job.get("channel").getAsJsonObject().get("category_title").getAsString());
  79.             setViews_count(job.get("channel").getAsJsonObject().get("views_count").getAsInt());
  80.         }
  81.    
  82.         public boolean isOnline() {
  83.             return this.online;
  84.         }
  85.    
  86.         public void setOnline(boolean online) {
  87.             this.online = online;
  88.         }
  89.    
  90.         public int getBroadcast_part() {
  91.             return this.broadcast_part;
  92.         }
  93.    
  94.         public void setBroadcast_part(int broadcast_part) {
  95.             this.broadcast_part = broadcast_part;
  96.         }
  97.    
  98.         public boolean isFeatured() {
  99.             return this.featured;
  100.         }
  101.    
  102.         public void setFeatured(boolean featured) {
  103.             this.featured = featured;
  104.         }
  105.    
  106.         public boolean isChannel_subscription() {
  107.             return this.channel_subscription;
  108.         }
  109.    
  110.         public void setChannel_subscription(boolean channel_subscription) {
  111.             this.channel_subscription = channel_subscription;
  112.         }
  113.    
  114.         public String getId() {
  115.             return this.id;
  116.         }
  117.    
  118.         public void setId(String id) {
  119.             this.id = id;
  120.         }
  121.    
  122.         public String getCategory() {
  123.             return this.category;
  124.         }
  125.    
  126.         public void setCategory(String category) {
  127.             this.category = category;
  128.         }
  129.    
  130.         public String getTitle() {
  131.             return this.title;
  132.         }
  133.    
  134.         public void setTitle(String title) {
  135.             this.title = title;
  136.         }
  137.    
  138.         public int getChannel_count() {
  139.             return this.channel_count;
  140.         }
  141.    
  142.         public void setChannel_count(int channel_count) {
  143.             this.channel_count = channel_count;
  144.         }
  145.    
  146.         public int getVideo_height() {
  147.             return this.video_height;
  148.         }
  149.    
  150.         public void setVideo_height(int video_height) {
  151.             this.video_height = video_height;
  152.         }
  153.    
  154.         public int getSite_count() {
  155.             return this.site_count;
  156.         }
  157.    
  158.         public void setSite_count(int site_count) {
  159.             this.site_count = site_count;
  160.         }
  161.    
  162.         public boolean isEmbed_enabled() {
  163.             return this.embed_enabled;
  164.         }
  165.    
  166.         public void setEmbed_enabled(boolean embed_enabled) {
  167.             this.embed_enabled = embed_enabled;
  168.         }
  169.    
  170.         public String getUp_time() {
  171.             return this.up_time;
  172.         }
  173.    
  174.         public void setUp_time(String up_time) {
  175.             this.up_time = up_time;
  176.         }
  177.    
  178.         public String getMeta_game() {
  179.             return this.meta_game;
  180.         }
  181.    
  182.         public void setMeta_game(String meta_game) {
  183.             this.meta_game = meta_game;
  184.         }
  185.    
  186.         public String getFormat() {
  187.             return this.format;
  188.         }
  189.    
  190.         public void setFormat(String format) {
  191.             this.format = format;
  192.         }
  193.    
  194.         public int getEmbed_count() {
  195.             return this.embed_count;
  196.         }
  197.    
  198.         public void setEmbed_count(int embed_count) {
  199.             this.embed_count = embed_count;
  200.         }
  201.    
  202.         public String getStream_type() {
  203.             return this.stream_type;
  204.         }
  205.    
  206.         public void setStream_type(String stream_type) {
  207.             this.stream_type = stream_type;
  208.         }
  209.    
  210.         public boolean isAbuse_reported() {
  211.             return this.abuse_reported;
  212.         }
  213.    
  214.         public void setAbuse_reported(boolean abuse_reported) {
  215.             this.abuse_reported = abuse_reported;
  216.         }
  217.    
  218.         public int getVideo_width() {
  219.             return this.video_width;
  220.         }
  221.    
  222.         public void setVideo_width(int video_width) {
  223.             this.video_width = video_width;
  224.         }
  225.    
  226.         public String getGeo() {
  227.             return this.geo;
  228.         }
  229.    
  230.         public void setGeo(String geo) {
  231.             this.geo = geo;
  232.         }
  233.    
  234.         public String getName() {
  235.             return this.name;
  236.         }
  237.    
  238.         public void setName(String name) {
  239.             this.name = name;
  240.         }
  241.    
  242.         public String getLanguage() {
  243.             return this.language;
  244.         }
  245.    
  246.         public void setLanguage(String language) {
  247.             this.language = language;
  248.         }
  249.    
  250.         public int getStream_count() {
  251.             return this.stream_count;
  252.         }
  253.    
  254.         public void setStream_count(int stream_count) {
  255.             this.stream_count = stream_count;
  256.         }
  257.    
  258.         public double getVideo_bitrate() {
  259.             return this.video_bitrate;
  260.         }
  261.    
  262.         public void setVideo_bitrate(double video_bitrate) {
  263.             this.video_bitrate = video_bitrate;
  264.         }
  265.    
  266.         public String getBroadcaster() {
  267.             return this.broadcaster;
  268.         }
  269.    
  270.         public void setBroadcaster(String broadcaster) {
  271.             this.broadcaster = broadcaster;
  272.         }
  273.    
  274.         public int getChannel_view_count() {
  275.             return this.channel_view_count;
  276.         }
  277.    
  278.         public void setChannel_view_count(int channel_view_count) {
  279.             this.channel_view_count = channel_view_count;
  280.         }
  281.    
  282.         public String getUsername() {
  283.             return this.username;
  284.         }
  285.    
  286.         public void setUsername(String username) {
  287.             this.username = username;
  288.         }
  289.    
  290.         public String getStatus() {
  291.             return this.status;
  292.         }
  293.    
  294.         public void setStatus(String status) {
  295.             this.status = status;
  296.         }
  297.    
  298.         public String getChannel_url() {
  299.             return this.channel_url;
  300.         }
  301.    
  302.         public void setChannel_url(String channel_url) {
  303.             this.channel_url = channel_url;
  304.         }
  305.    
  306.         public boolean isProducer() {
  307.             return this.producer;
  308.         }
  309.    
  310.         public void setProducer(boolean producer) {
  311.             this.producer = producer;
  312.         }
  313.    
  314.         public String getSubcategory_title() {
  315.             return this.subcategory_title;
  316.         }
  317.    
  318.         public void setSubcategory_title(String subcategory_title) {
  319.             this.subcategory_title = subcategory_title;
  320.         }
  321.    
  322.         public String getScreen_cap_url_large() {
  323.             return this.screen_cap_url_large;
  324.         }
  325.    
  326.         public void setScreen_cap_url_large(String screen_cap_url_large) {
  327.             this.screen_cap_url_large = screen_cap_url_large;
  328.         }
  329.    
  330.         public String getScreen_cap_url_small() {
  331.             return this.screen_cap_url_small;
  332.         }
  333.    
  334.         public void setScreen_cap_url_small(String screen_cap_url_small) {
  335.             this.screen_cap_url_small = screen_cap_url_small;
  336.         }
  337.    
  338.         public String getScreen_cap_url_medium() {
  339.             return this.screen_cap_url_medium;
  340.         }
  341.    
  342.         public void setScreen_cap_url_medium(String screen_cap_url_medium) {
  343.             this.screen_cap_url_medium = screen_cap_url_medium;
  344.         }
  345.    
  346.         public String getScreen_cap_url_huge() {
  347.             return this.screen_cap_url_huge;
  348.         }
  349.    
  350.         public void setScreen_cap_url_huge(String screen_cap_url_huge) {
  351.             this.screen_cap_url_huge = screen_cap_url_huge;
  352.         }
  353.    
  354.         public String getTimezone() {
  355.             return this.timezone;
  356.         }
  357.    
  358.         public void setTimezone(String timezone) {
  359.             this.timezone = timezone;
  360.         }
  361.    
  362.         public String getCategory_title() {
  363.             return this.category_title;
  364.         }
  365.    
  366.         public void setCategory_title(String category_title) {
  367.             this.category_title = category_title;
  368.         }
  369.    
  370.         public int getViews_count() {
  371.             return this.views_count;
  372.         }
  373.    
  374.         public void setViews_count(int views_count) {
  375.             this.views_count = views_count;
  376.         }
  377.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement