In some countries there are local television channels that need to be made available to people living within a particular locality.
Operators are required to:
Make local channels available to local residents
Ensure that local channels from other areas are not available
Amino implementation
Amino models local channels by including a boolean flag that indicates whether the channel is local or not.
Users are licensed by the customer to view particular local channels; Amino does not store information about where the user lives and cannot determine what channels they need to be able to view.
Therefore, when displaying a list of local channels to a user, the client should:
Obtain a general list of channels and find the ones which are local by examining the flag
Filter out channels from this list that the user does not have a license fo
Use case examples
Getting a list of local channels
With the legacy endpoints
Our legacy endpoint is user specific and performs the license checks required in step 2.
We use the "isUserAuthorized" field to indicate whether the user is able to view the channel or not.
Therefore, in order to get a list of the local channels the client should:
Call the GET method on the index of user specific channels
Iterate through the list and remove any channel that either:
Does not have the local flag set
Has a value of "false" for "isUserAuthorized"
There may be a further requirement from the customer that local channels appear with a sequential lcn. Amino does not guarantee that local channels will be ordered as such in the API output and the client may need to perform further processing in order to meet customer requirements.