ON THIS PAGE
LiveTextFeed Entity
The LiveTextFeed entity has the following properties:
- [int] Id:(read only) The identifier and primary key of the LiveTextFeed instance.
- [string] Name: The user-defined name of the LiveTextFeed instance. This alternate key must be unique in the scope of the BSN account.
- [string] PhysicalPath:(read only) The external URL of the associated RSS file in persistent storage.
- [long] FileSize:(read only) The size of the associated RSS file in bytes.
- [string] FileHash:(read only): A SHA1 hash of the associated RSS file contents.
- [DateTime] CreationDate:(read only) A UTC timestamp indicating when the Live Text Feed was created in the BrightSign Network.
- [Dictionary<string,string>] Contents: A list of key-value pairs that make up the Live Text Feed. This list is set to Null when not initialized by the server.
- [PresentationInfo[]]Presentations:(read only) An array of PresentationInfo structures that denote parent presentations.
- [LiveTextFeedItem[]]Items: An array of LiveTextFeedItem entity-relations that reference individual items within the Live Text Feed. This list is set to Null when not initialized by the server.
LiveTextFeedItem Entity-Relation
The LiveTextFeedItem entity-relation represents a single Live Text Feed item. It has the following properties:
- [string] Title: The key (RSS item title) of the item in the associated Live Text Feed.
- [string] Description: The value (RSS item description) of the item in the associated Live Text Feed.
- [DateTime] ValidityStartDate: A value that determines the validity start date for the item (i.e. the point at which the item will start being displayed in the Live Text Feed). A Null value determines that the item is valid from the moment it is added to the Live Text Feed; this is the standard case for most items.
- [DateTime] ValidityEndDate: A value that determines the validity end date for the associated item (i.e. the point at which the item will no longer be displayed in the Live Text Feed). A Null value determines that the item will be valid until it is removed from the Live Text Feed manually by the user; this is the standard case for most items.
Live Text Feed Management Web Methods
PagedList<LiveTextFeed> GetLiveTextFeeds(string marker, int pageSize)
Retrieves the next page of the LiveTextFeed list, sorted by [string] Name. The returned list will contain no more items than the defined page size.
Required Permissions
Live Text Feed: View Live Text Feeds
Parameters
- [string] marker: The [string] Name of the last LiveTextFeed instance on the previous page. If the value is Null, then the method will retrieve the first page.
- [int] pageSize: The maximum number of objects returned by the method. If the list of objects that match the search criteria exceeds the [int] pageSize limit, the returned list will indicate that it is truncated. If the integer is not positive, then the method will return the maximum allowed number of objects. Attempting to request more objects than is allowed will lead to the same result, but without an error.
List<LiveTextFeed> GetSpecifiedLiveTextFeeds(int[] liveTextFeedIds)
Retrieves a list of LiveTextFeed instances matching the specified identifiers, sorted by [string] Name. The identifiers of nonexistent LiveTextFeed instances will be ignored.
Required Permissions
Live Text Feed: View Live Text Feeds
Parameters
- [int[]]liveTextFeedIds: An array of [int] Id values for the LiveTextFeed instances being requested. The number of returned items is limited to 100 by the server. Attempting to request more than the maximum allowed number of objects will cause an error, while passing an empty array will lead to an immediate empty response without an error.
PagedList<LiveTextFeed> FindLiveTextFeeds(string namePattern, string marker, int pageSize)
Retrieves the next page of a LiveTextFeed list containing names matched with the specified pattern. The returned list is organized by [string] Name and may not contain more items than the defined page size.
Required Permissions
Live Text Feed: View Live Text Feeds
Parameters
- [string] namePattern: The exact [string] Name of the LiveTextFeed instance (or its wildcard-based pattern). Supported wildcards currently include “*”, “?”, and “[‘and’]”.
- [string] marker: The [string] Name of the last LiveTextFeed instance on the previous page. If the value is Null, then the method will retrieve the first page.
- [int] pageSize: The maximum number of objects returned by the method. If the list of objects that match the search criteria exceeds the [int] pageSize limit, the returned list will indicate that it is truncated. If the integer is not positive, then the method will return the maximum allowed number of objects. Attempting to request more objects than is allowed will lead to the same result, but without an error.
LiveTextFeed GetLiveTextFeed(int liveTextFeedId, bool loadContent)
Retrieves a single LiveTextFeed instance with the specified [int] Id. This method returns Null if the LiveTextFeed instance with the specified identifier does not exist.
Required Permissions
Live Text Feed: View Live Text Feed, View Contents
Parameters
- [int] liveTextFeedId: The identifier and primary key of the LiveTextFeed instance to be retrieved.
- [bool] loadContent: A flag specifying whether the method should also initialize and return the items (i.e. key value pairs) of the Live Text Feed.
LiveTextFeed GetLiveTextFeedByName(string name, bool loadContent)
Retrieves the LiveTextFeed instance with the specified [string] Name. This method returns Null if the LiveTextFeed instance with the specified name does not exist.
Required Permissions
Live Text Feed: View Live Text Feed, View Contents
Parameters
- [string] name: The user-defined Name of the LiveTextFeed instance to be retrieved
- [bool] loadContent: A flag specifying whether the method should also initialize and return the items (i.e. key value pairs) of the Live Text Feed.
bool CheckLiveTextFeedName(string name)
Determines whether the specified Live Text Feed [string] Name is currently in use. This method returns True if a Live Text Feed with the specified name currently exists.
Note that when using this method to check whether a LiveTextFeed instance can be created, a False status may change in the time between calling this method and calling CreateLiveTextFeed().
Required Permissions
None
Parameters
- [string] name: The Live Text Feed Name value to be evaluated.
bool CheckLiveTextFeedUsage(int liveTextFeedId)
Determines whether the LiveTextFeed instance (specified by its primary key) is referenced by one or more presentations. This method returns True if the LiveTextFeed instance has parent dependencies.
Note that when using this method to check whether a LiveTextFeed instance can be deleted, a False status may change in the time between calling this method and calling DeleteLiveTextFeed().
Required Permissions
Live Text Feed: View Live Text Feed
Parameters
- [int] liveTextFeedId: The identifier and primary key of the LiveTextFeed instance to evaluate. If a LiveTextFeed instance with the specified [int] Id does not exist, this method will return False without an error.
bool CheckLiveTextFeedUsageByName(string name)
Determines whether a LiveTextFeed instance (specified with its alternate, user-defined key) is referenced by one or more presentations. This method returns True if the LiveTextFeed instance has parent dependencies.
Note that when using this method to check whether a LiveTextFeed instance can be deleted, a False status may change in the time between calling this method and calling DeleteLiveTextFeed().
Required Permissions
Live Text Feed: View Live Text Feed
Parameters
- [string] name: The user-defined name of the LiveTextFeed instance to evaluate. If a LiveTextFeed instance with the specified [string] Name does not exist, this method will return False without an error.
LiveTextFeed CreateLiveTextFeed(LiveTextFeed entity)
Creates a new LiveTextFeed instance and related RSS file with the specified [string] Name and LiveTextFeedItem[]]Items parameters. This method returns the created object with all initialized properties if successful. If an error occurs during the creation process, the method will return Null.
A descriptive error will be returned if the key strings in the key-value pairs are not unique or if the number of key-value pairs in the object instance surpasses the limit defined on the server.
Required Permissions
Live Text Feed: Create Live Text Feed
Parameters
- [LiveTextFeed] entity: A LiveTextFeed object instance with initialized Name and Items parameters. All other properties will be ignored during object creation. If this parameter is set to Null, then the method will immediately return Null without an error. A descriptive error will be returned to the client if the LiveTextFeed name is more than 50 characters or if another LiveTextFeed instance has the same name.
LiveTextFeed CloneLiveTextFeed(string feedUrl)
Creates a new LiveTextFeed instance and related RSS file using the name and key-value pairs copied from the specified external RSS URL. If successful, this method returns the newly created object with all initialized properties. If an error occurs during object creation, this method returns Null.
A descriptive error will be returned if the key strings in the key-value pairs are not unique or if the number of key-value pairs in the new object instance surpasses the limit defined on the server.
Required Permissions
Live Text Feed: Create Live Text Feed
Parameters
- [string] feedUrl: An external URL of a publicly available RSS feed. The RSS Title will be used as the LiveTextFeed instance name and the RSS title-description pairs will converted to key-value pairs. If this parameter is Null or invalid, then the method will immediately return Null without an error. This method will return a descriptive error if the string length of the RSS channel title, plus the “Copy ({index}) of” prefix, exceeds 50 characters.
bool UpdateLiveTextFeed(LiveTextFeed entity)
Updates the [string] Name and LiveTextFeedItem[]]Items parameters of the specified LiveTextFeed instance and related RSS file. This method returns True only if completely successful. Otherwise, it returns False.
A descriptive error will be returned if the key strings in the key-value pairs are not unique or if the number of key-value pairs in the object instance surpasses the limit defined on the server.
Required Permissions
Live Text Feed: View Live Text Feed
Parameters
- [LiveTextFeed] entity: A LiveTextFeed object instance containing the [int] Id of the instance to update, as well as the new [string] Name and LiveTextFeedItem[]]Items parameters for the updated instance. If this parameter is Null or invalid, then the method will immediately return Null without an error. A descriptive error will be returned if any of the following conditions occur:
- The [int] Id does not correspond to an existing LiveTextFeed instance.
- The length of the specified LiveTextFeed instance [string] Name exceeds 50 characters.
- The specified [string] Name is currently in use by another LiveTextFeed instance.
- The key strings in the key-value pairs are not unique.
- The number of key-value pairs in the object instance surpasses the limit defined on the server.
bool RenameLiveTextFeed(int liveTextFeedId, string newName)
Updates the [string] Name of the specified LiveTextFeed instance. This method returns True upon success and False upon failure.
Required Permissions
Live Text Feed: Update Live Text Feed, Rename Live Text Feed
Parameters
- [int] LiveTextFeedId: The identifier and primary key of the LiveTextFeed instance. If a LiveTextFeed instance with the specified identifier does not exist, the method will return False without an error.
- [string] newName: A new Name parameter for the specified LiveTextFeed instance. A descriptive error will be returned if the new Name string is greater than 50 characters.
bool DeleteLiveTextFeeds(int[] liveTextFeedIds)
Deletes the specified LiveTextFeed instance(s) and related RSS file(s) in both the database and persistent storage. This method returns True only if completely successful. Otherwise, it returns False.
Required Permissions
Live Text Feed: Delete Live Text Feed
Parameters
- [int[]]liveTextFeedIds: An array of [int] Id values for the LiveTextFeed instances to be deleted. The number of requested items is limited to 100 by the server. Attempting to request more than the maximum allowed number of objects will cause an error. An error will also be returned if an [int] Id parameter does not correspond to an existing LiveTextFeed instance. Passing an empty array or Live Text Feed identifiers that don’t exist will lead to an immediate empty response without an error.