C# Class BLL.Dao.TimelapseDao

ファイルを表示 Open project: evercam/Timelapse

Public Methods

Method Description
Delete ( int id ) : bool
Delete ( string code ) : bool
Get ( int id ) : Timelapse
Get ( string code ) : Timelapse
GetAllDeleted ( ) : List
GetExists ( int id ) : Timelapse
GetFileSize ( int id ) : double
GetFileSize ( string code ) : double
GetList ( TimelapsePrivacy privacy, TimelapseStatus status ) : List
GetListByCameraId ( string id, TimelapsePrivacy privacy, TimelapseStatus status ) : List
GetListByEvercamId ( string evercamId, TimelapsePrivacy privacy, TimelapseStatus status ) : List
GetListByRecording ( bool isRecording, TimelapsePrivacy privacy, TimelapseStatus status ) : List
GetListByServerIP ( string serverIp, TimelapsePrivacy privacy, TimelapseStatus status ) : List
GetListByUserId ( int id, TimelapsePrivacy privacy, TimelapseStatus status ) : List
GetListForDeletion ( string deleted, string status ) : List
GetSnapsCount ( int id ) : int
GetSnapsCount ( string code ) : int
Insert ( Timelapse timelapse ) : int
ResetSnapsCount ( string code, long snaps ) : void
Update ( Timelapse timelapse ) : bool
UpdateFileInfo ( string code, TimelapseVideoInfo info ) : bool
UpdateFileSize ( string code, long size ) : long
UpdateLastSnapshot ( string code, System.DateTime lastSnapDate ) : bool
UpdateReCreateHlsParams ( string code, bool reCreateHls, bool startRecreateHls ) : bool
UpdateSnapsCount ( string code, long snaps ) : long
UpdateStatus ( string code, TimelapseStatus status, string tag, string timezone ) : bool
UpdateUserToken ( string user, string access_token ) : void
UpdateWatermark ( string code, string watermark, WatermarkPosition position, string timezone ) : bool

Private Methods

Method Description
GetListFromDataReader ( System.Data.SqlClient.SqlDataReader dr ) : List

Method Details

Delete() public static method

public static Delete ( int id ) : bool
id int
return bool

Delete() public static method

public static Delete ( string code ) : bool
code string
return bool

Get() public static method

public static Get ( int id ) : Timelapse
id int
return BLL.Entities.Timelapse

Get() public static method

public static Get ( string code ) : Timelapse
code string
return BLL.Entities.Timelapse

GetAllDeleted() public static method

public static GetAllDeleted ( ) : List
return List

GetExists() public static method

public static GetExists ( int id ) : Timelapse
id int
return BLL.Entities.Timelapse

GetFileSize() public static method

public static GetFileSize ( int id ) : double
id int
return double

GetFileSize() public static method

public static GetFileSize ( string code ) : double
code string
return double

GetList() public static method

public static GetList ( TimelapsePrivacy privacy, TimelapseStatus status ) : List
privacy TimelapsePrivacy
status TimelapseStatus
return List

GetListByCameraId() public static method

public static GetListByCameraId ( string id, TimelapsePrivacy privacy, TimelapseStatus status ) : List
id string
privacy TimelapsePrivacy
status TimelapseStatus
return List

GetListByEvercamId() public static method

public static GetListByEvercamId ( string evercamId, TimelapsePrivacy privacy, TimelapseStatus status ) : List
evercamId string
privacy TimelapsePrivacy
status TimelapseStatus
return List

GetListByRecording() public static method

public static GetListByRecording ( bool isRecording, TimelapsePrivacy privacy, TimelapseStatus status ) : List
isRecording bool
privacy TimelapsePrivacy
status TimelapseStatus
return List

GetListByServerIP() public static method

public static GetListByServerIP ( string serverIp, TimelapsePrivacy privacy, TimelapseStatus status ) : List
serverIp string
privacy TimelapsePrivacy
status TimelapseStatus
return List

GetListByUserId() public static method

public static GetListByUserId ( int id, TimelapsePrivacy privacy, TimelapseStatus status ) : List
id int
privacy TimelapsePrivacy
status TimelapseStatus
return List

GetListForDeletion() public static method

public static GetListForDeletion ( string deleted, string status ) : List
deleted string
status string
return List

GetSnapsCount() public static method

public static GetSnapsCount ( int id ) : int
id int
return int

GetSnapsCount() public static method

public static GetSnapsCount ( string code ) : int
code string
return int

Insert() public static method

public static Insert ( Timelapse timelapse ) : int
timelapse BLL.Entities.Timelapse
return int

ResetSnapsCount() public static method

public static ResetSnapsCount ( string code, long snaps ) : void
code string
snaps long
return void

Update() public static method

public static Update ( Timelapse timelapse ) : bool
timelapse BLL.Entities.Timelapse
return bool

UpdateFileInfo() public static method

public static UpdateFileInfo ( string code, TimelapseVideoInfo info ) : bool
code string
info BLL.Entities.TimelapseVideoInfo
return bool

UpdateFileSize() public static method

public static UpdateFileSize ( string code, long size ) : long
code string
size long
return long

UpdateLastSnapshot() public static method

public static UpdateLastSnapshot ( string code, System.DateTime lastSnapDate ) : bool
code string
lastSnapDate System.DateTime
return bool

UpdateReCreateHlsParams() public static method

public static UpdateReCreateHlsParams ( string code, bool reCreateHls, bool startRecreateHls ) : bool
code string
reCreateHls bool
startRecreateHls bool
return bool

UpdateSnapsCount() public static method

public static UpdateSnapsCount ( string code, long snaps ) : long
code string
snaps long
return long

UpdateStatus() public static method

public static UpdateStatus ( string code, TimelapseStatus status, string tag, string timezone ) : bool
code string
status TimelapseStatus
tag string
timezone string
return bool

UpdateUserToken() public static method

public static UpdateUserToken ( string user, string access_token ) : void
user string
access_token string
return void

UpdateWatermark() public static method

public static UpdateWatermark ( string code, string watermark, WatermarkPosition position, string timezone ) : bool
code string
watermark string
position WatermarkPosition
timezone string
return bool