Package model

Class Channel

java.lang.Object
model.Channel

public class Channel
extends java.lang.Object
Class to represent Channels with the for this project needed information (could be extended).
  • Field Summary

    Fields
    Modifier and Type Field Description
    private java.lang.String a_pid
    Used field name from JSON file.
    private java.lang.String name
    Used field name from JSON file.
    private java.lang.String res
    Used field name from JSON file.
    private java.lang.String type
    Used field name from JSON file.
  • Constructor Summary

    Constructors
    Constructor Description
    Channel()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getLanguage()
    Returns the language.
    java.lang.String getName()
    Returns the name.
    java.lang.String getRes()
    Returns the resolution.
    java.lang.String getType()
    Returns the type (whether radio or TV channel).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • type

      private java.lang.String type
      Used field name from JSON file.
    • name

      private java.lang.String name
      Used field name from JSON file.
    • res

      private java.lang.String res
      Used field name from JSON file.
    • a_pid

      private java.lang.String a_pid
      Used field name from JSON file.
  • Constructor Details

    • Channel

      public Channel()
  • Method Details

    • getLanguage

      public java.lang.String getLanguage()
      Returns the language.
      Returns:
      language
    • getType

      public java.lang.String getType()
      Returns the type (whether radio or TV channel).
      Returns:
      type
    • getName

      public java.lang.String getName()
      Returns the name.
      Returns:
      name
    • getRes

      public java.lang.String getRes()
      Returns the resolution.
      Returns:
      resolution