C# Class TVServerKodi.TVServerController

Exibir arquivo Open project: margro/TVServerXBMC Class Usage Examples

Public Properties

Property Type Description
lastException System.Exception
userlist TvControl.User>.Dictionary

Public Methods

Method Description
AddSchedule ( int channelId, String programName, System.DateTime startTime, System.DateTime endTime, int scheduleType, Int32 priority, Int32 keepmethod, System.DateTime keepdate, Int32 preRecordInterval, Int32 postRecordInterval ) : bool
DeleteRecording ( int idRecording ) : void
DeleteSchedule ( int idSchedule ) : bool
GetBackendName ( ) : string
GetCardSettings ( int cardID ) : List
GetChannelCount ( String group ) : int
GetChannelInfo ( int chanId ) : ChannelInfo
GetChannelInfosForGroup ( string groupName ) : List
GetEPGForChannel ( string idChannel, System.DateTime startTime, System.DateTime endTime ) : List
GetGroupNames ( ) : List
GetRadioChannels ( List groupNames ) : List
GetRadioGroupNames ( ) : List
GetReceptionDetails ( int cardID ) : ReceptionDetails
GetRecordedTV ( ) : List
GetRecordingCount ( ) : int
GetRecordingDriveSpace ( ) : string
GetRecordingInfo ( int recId, bool withRTSPurl ) : String
GetRecordingStopTime ( int recordingindex ) : int
GetRecordingURL ( int idRecording, TvControl.TvServer server, bool resolveHostnames, string &OriginalURL ) : string
GetRecordings ( bool resolveHostnames, string &OriginalURL ) : List
GetScheduleCount ( ) : int
GetScheduleInfo ( int index ) : String
GetSchedules ( bool kodiHasSeriesSupport = false ) : List
GetStreamingStatus ( ) : List
GetTVChannels ( List groupNames ) : List
GetTimeshiftURLs ( TvControl &me ) : TimeShiftURLs
GetVersion ( ) : string
GetWebStreamURL ( TvDatabase.Channel &chan ) : string
GetWebStreamURL ( int idChannel ) : string
HeartBeat ( IUser user ) : void
IsRecording ( ) : bool
IsTimeShifting ( IUser &user ) : bool
RequestUser ( string username ) : TvControl.User
ResetConnection ( ) : void
SetRecordingStopTime ( int recordingindex, int stopTime ) : bool
SetRecordingTimesWatched ( int recordingindex, int timesWatched ) : bool
Setup ( ) : bool
StartTimeShifting ( int idChannel, string &rtspURL, string &remoteserver, IUser &user, string &timeshiftfilename, System.Int64 &timeShiftBufPos, long &timeShiftBufNr ) : TvResult
StopRecording ( int schedId ) : bool
StopTimeShifting ( ) : bool
StopTimeShifting ( IUser &user ) : bool
TVServerController ( IController controller ) : System
UpdateRecording ( int recordingindex, String recordingName ) : bool
UpdateSchedule ( int scheduleindex, int channelId, int active, String programName, System.DateTime startTime, System.DateTime endTime, int scheduleType, Int32 priority, Int32 keepmethod, System.DateTime keepdate, Int32 preRecordInterval, Int32 postRecordInterval, Int32 programId ) : bool
getRadioChannels ( string groupName ) : List
getRecordings ( ) : List
getSchedules ( ) : List

Private Methods

Method Description
FormatSchedule ( string strSchedId, string strStartTime, string strEndTime, string strIdChannel, string strchannelname, string strProgramName, TvDatabase.Schedule sched, string strIsRecording, string stridProgram, System.DateTime Canceled, int iParentSchedule, string strGenre, string strProgramDescription ) : string
GetDateTimeString ( ) : string

Method Details

AddSchedule() public method

public AddSchedule ( int channelId, String programName, System.DateTime startTime, System.DateTime endTime, int scheduleType, Int32 priority, Int32 keepmethod, System.DateTime keepdate, Int32 preRecordInterval, Int32 postRecordInterval ) : bool
channelId int
programName String
startTime System.DateTime
endTime System.DateTime
scheduleType int
priority System.Int32
keepmethod System.Int32
keepdate System.DateTime
preRecordInterval System.Int32
postRecordInterval System.Int32
return bool

DeleteRecording() public method

public DeleteRecording ( int idRecording ) : void
idRecording int
return void

DeleteSchedule() public method

public DeleteSchedule ( int idSchedule ) : bool
idSchedule int
return bool

GetBackendName() public method

public GetBackendName ( ) : string
return string

GetCardSettings() public method

public GetCardSettings ( int cardID ) : List
cardID int
return List

GetChannelCount() public method

public GetChannelCount ( String group ) : int
group String
return int

GetChannelInfo() public method

public GetChannelInfo ( int chanId ) : ChannelInfo
chanId int
return ChannelInfo

GetChannelInfosForGroup() public method

public GetChannelInfosForGroup ( string groupName ) : List
groupName string
return List

GetEPGForChannel() public method

public GetEPGForChannel ( string idChannel, System.DateTime startTime, System.DateTime endTime ) : List
idChannel string
startTime System.DateTime
endTime System.DateTime
return List

GetGroupNames() public method

public GetGroupNames ( ) : List
return List

GetRadioChannels() public method

public GetRadioChannels ( List groupNames ) : List
groupNames List
return List

GetRadioGroupNames() public method

public GetRadioGroupNames ( ) : List
return List

GetReceptionDetails() public method

public GetReceptionDetails ( int cardID ) : ReceptionDetails
cardID int
return ReceptionDetails

GetRecordedTV() public method

public GetRecordedTV ( ) : List
return List

GetRecordingCount() public method

public GetRecordingCount ( ) : int
return int

GetRecordingDriveSpace() public method

public GetRecordingDriveSpace ( ) : string
return string

GetRecordingInfo() public method

public GetRecordingInfo ( int recId, bool withRTSPurl ) : String
recId int
withRTSPurl bool
return String

GetRecordingStopTime() public method

public GetRecordingStopTime ( int recordingindex ) : int
recordingindex int
return int

GetRecordingURL() public method

public GetRecordingURL ( int idRecording, TvControl.TvServer server, bool resolveHostnames, string &OriginalURL ) : string
idRecording int
server TvControl.TvServer
resolveHostnames bool
OriginalURL string
return string

GetRecordings() public method

public GetRecordings ( bool resolveHostnames, string &OriginalURL ) : List
resolveHostnames bool
OriginalURL string
return List

GetScheduleCount() public method

public GetScheduleCount ( ) : int
return int

GetScheduleInfo() public method

public GetScheduleInfo ( int index ) : String
index int
return String

GetSchedules() public method

public GetSchedules ( bool kodiHasSeriesSupport = false ) : List
kodiHasSeriesSupport bool
return List

GetStreamingStatus() public method

public GetStreamingStatus ( ) : List
return List

GetTVChannels() public method

public GetTVChannels ( List groupNames ) : List
groupNames List
return List

GetTimeshiftURLs() public method

public GetTimeshiftURLs ( TvControl &me ) : TimeShiftURLs
me TvControl
return TimeShiftURLs

GetVersion() public method

public GetVersion ( ) : string
return string

GetWebStreamURL() public method

public GetWebStreamURL ( TvDatabase.Channel &chan ) : string
chan TvDatabase.Channel
return string

GetWebStreamURL() public method

public GetWebStreamURL ( int idChannel ) : string
idChannel int
return string

HeartBeat() public method

public HeartBeat ( IUser user ) : void
user IUser
return void

IsRecording() public method

public IsRecording ( ) : bool
return bool

IsTimeShifting() public method

public IsTimeShifting ( IUser &user ) : bool
user IUser
return bool

RequestUser() public method

public RequestUser ( string username ) : TvControl.User
username string
return TvControl.User

ResetConnection() public method

public ResetConnection ( ) : void
return void

SetRecordingStopTime() public method

public SetRecordingStopTime ( int recordingindex, int stopTime ) : bool
recordingindex int
stopTime int
return bool

SetRecordingTimesWatched() public method

public SetRecordingTimesWatched ( int recordingindex, int timesWatched ) : bool
recordingindex int
timesWatched int
return bool

Setup() public method

public Setup ( ) : bool
return bool

StartTimeShifting() public method

public StartTimeShifting ( int idChannel, string &rtspURL, string &remoteserver, IUser &user, string &timeshiftfilename, System.Int64 &timeShiftBufPos, long &timeShiftBufNr ) : TvResult
idChannel int
rtspURL string
remoteserver string
user IUser
timeshiftfilename string
timeShiftBufPos System.Int64
timeShiftBufNr long
return TvResult

StopRecording() public method

public StopRecording ( int schedId ) : bool
schedId int
return bool

StopTimeShifting() public method

public StopTimeShifting ( ) : bool
return bool

StopTimeShifting() public method

public StopTimeShifting ( IUser &user ) : bool
user IUser
return bool

TVServerController() public method

public TVServerController ( IController controller ) : System
controller IController
return System

UpdateRecording() public method

public UpdateRecording ( int recordingindex, String recordingName ) : bool
recordingindex int
recordingName String
return bool

UpdateSchedule() public method

public UpdateSchedule ( int scheduleindex, int channelId, int active, String programName, System.DateTime startTime, System.DateTime endTime, int scheduleType, Int32 priority, Int32 keepmethod, System.DateTime keepdate, Int32 preRecordInterval, Int32 postRecordInterval, Int32 programId ) : bool
scheduleindex int
channelId int
active int
programName String
startTime System.DateTime
endTime System.DateTime
scheduleType int
priority System.Int32
keepmethod System.Int32
keepdate System.DateTime
preRecordInterval System.Int32
postRecordInterval System.Int32
programId System.Int32
return bool

getRadioChannels() public method

public getRadioChannels ( string groupName ) : List
groupName string
return List

getRecordings() public method

public getRecordings ( ) : List
return List

getSchedules() public method

public getSchedules ( ) : List
return List

Property Details

lastException public_oe property

public Exception,System lastException
return System.Exception

userlist public_oe static_oe property

public static Dictionary userlist
return TvControl.User>.Dictionary