# =================================================================================================== # _ __ _ _ # | |/ /__ _| | |_ _ _ _ _ __ _ # | ' . # # @ignore # =================================================================================================== require 'kaltura_client.rb' require File.dirname(__FILE__) + '/kaltura_content_distribution_client_plugin.rb' module Kaltura class KalturaFacebookDistributionProfileOrderBy CREATED_AT_ASC = "+createdAt" UPDATED_AT_ASC = "+updatedAt" CREATED_AT_DESC = "-createdAt" UPDATED_AT_DESC = "-updatedAt" end class KalturaFacebookDistributionProviderOrderBy end class KalturaFacebookCaptionDistributionInfo < KalturaObjectBase attr_accessor :language attr_accessor :label attr_accessor :file_path attr_accessor :remote_id attr_accessor :version attr_accessor :asset_id def from_xml(xml_element) super if xml_element.elements['language'] != nil self.language = xml_element.elements['language'].text end if xml_element.elements['label'] != nil self.label = xml_element.elements['label'].text end if xml_element.elements['filePath'] != nil self.file_path = xml_element.elements['filePath'].text end if xml_element.elements['remoteId'] != nil self.remote_id = xml_element.elements['remoteId'].text end if xml_element.elements['version'] != nil self.version = xml_element.elements['version'].text end if xml_element.elements['assetId'] != nil self.asset_id = xml_element.elements['assetId'].text end end end class KalturaFacebookDistributionProvider < KalturaDistributionProvider def from_xml(xml_element) super end end class KalturaFacebookDistributionJobProviderData < KalturaConfigurableDistributionJobProviderData attr_accessor :video_asset_file_path attr_accessor :thumb_asset_id attr_accessor :captions_info def from_xml(xml_element) super if xml_element.elements['videoAssetFilePath'] != nil self.video_asset_file_path = xml_element.elements['videoAssetFilePath'].text end if xml_element.elements['thumbAssetId'] != nil self.thumb_asset_id = xml_element.elements['thumbAssetId'].text end if xml_element.elements['captionsInfo'] != nil self.captions_info = KalturaClientBase.object_from_xml(xml_element.elements['captionsInfo'], 'KalturaFacebookCaptionDistributionInfo') end end end class KalturaFacebookDistributionProfile < KalturaConfigurableDistributionProfile attr_accessor :api_authorize_url attr_accessor :page_id attr_accessor :page_access_token attr_accessor :user_access_token attr_accessor :state attr_accessor :permissions attr_accessor :re_request_permissions def re_request_permissions=(val) @re_request_permissions = val.to_i end def from_xml(xml_element) super if xml_element.elements['apiAuthorizeUrl'] != nil self.api_authorize_url = xml_element.elements['apiAuthorizeUrl'].text end if xml_element.elements['pageId'] != nil self.page_id = xml_element.elements['pageId'].text end if xml_element.elements['pageAccessToken'] != nil self.page_access_token = xml_element.elements['pageAccessToken'].text end if xml_element.elements['userAccessToken'] != nil self.user_access_token = xml_element.elements['userAccessToken'].text end if xml_element.elements['state'] != nil self.state = xml_element.elements['state'].text end if xml_element.elements['permissions'] != nil self.permissions = xml_element.elements['permissions'].text end if xml_element.elements['reRequestPermissions'] != nil self.re_request_permissions = xml_element.elements['reRequestPermissions'].text end end end class KalturaFacebookDistributionProviderBaseFilter < KalturaDistributionProviderFilter def from_xml(xml_element) super end end class KalturaFacebookDistributionProviderFilter < KalturaFacebookDistributionProviderBaseFilter def from_xml(xml_element) super end end class KalturaFacebookDistributionProfileBaseFilter < KalturaConfigurableDistributionProfileFilter def from_xml(xml_element) super end end class KalturaFacebookDistributionProfileFilter < KalturaFacebookDistributionProfileBaseFilter def from_xml(xml_element) super end end end