Channel

class Channel

Used for subsciprition

  • This is a String which is used to store the name of Channel

    Declaration

    Swift

    let name: String
  • This is a UIImage which is used to display the image of Channel

    Declaration

    Swift

    let image: UIImage
  • Number of subscribers

    Declaration

    Swift

    var subscribers: Int
  • Generate place holder channels, for displaying purpose

    Declaration

    Swift

    static func generateDefaultChannels() -> [Channel]
  • Performe Channel initialization

    Declaration

    Swift

    init(name: String, image: UIImage)