public bool CanRenameSession(string SessionId, int UserId) { Functions F = new Functions(); bool response = F.CanRenameSession(SessionId,UserId); F.Dispose(); return response; }
public void AddStreamingEncoder(int StreamingEncoderId) { try { Functions F = new Functions(); F.AddStreamingEncoder(StreamingEncoderId,mvarID); F.Dispose(); } catch(Exception Err) { throw new ApplicationException(Err.Message,Err.InnerException); } }
public void RemoveRecording(int RecordingId) { try { Functions F = new Functions(); F.RemoveRecordingFromGroup(RecordingId,mvarID); F.Dispose(); } catch(Exception Err) { throw new ApplicationException(Err.Message,Err.InnerException); } }
public VideoStorageServer GetVideoStorageServerById(int Id) { Functions F = new Functions(); VideoStorageServer X = F.GetVideoStorageServer(Id); F.Dispose(); return X; }
public void InsertSectionType(int PrevSectionTypeId,string SectionTypeDescription,string CreatesSectionTypeDescription) { OysterClassLibrary.Functions F = new Functions(); F.InsertSectionType(PrevSectionTypeId,SectionTypeDescription,CreatesSectionTypeDescription); F.Dispose(); }
public string GetSystemName() { Functions F = new Functions(); string SystemName = F.GetSystemName(); F.Dispose(); return SystemName; }
public User GetUserByCardNumberRaw(string CardNumber) { string FCardNumber = FormatCardNumber(CardNumber); Functions F = new Functions(); User U = F.GetUser(FCardNumber); F.Dispose(); return U; }
/// <summary> /// Retrieves either all Current Groups or only the Public Access Groups in the System based on the supplied boolean parameter /// </summary> /// <param name="PublicOnly"></param> /// <returns></returns> public Groups GetALLGroups(bool PublicOnly) { Functions F = new Functions(); Groups G = F.GetGroups(PublicOnly); F.Dispose(); return G; }
public CardReader GetCardReaderById(int Id) { Functions F =new Functions(); CardReader X = F.GetCardReader(Id); F.Dispose(); return X; }
public Recording CreateRecording(string RecordingName,string DisplayName,int OwnerID,int VideoStorageServerID,int StreamingEncoder, string SessionID, string SessionName) { Functions F = new Functions(); Recording R = F.CreateARecording(RecordingName,DisplayName,OwnerID,VideoStorageServerID,StreamingEncoder,SessionID,SessionName); F.Dispose(); return R; }
public void DeleteRecordingById(int RecordingId) { try { Functions F = new Functions(); F.DeleteRecording(RecordingId); F.Dispose(); } catch(Exception Err) { throw new Exception(Err.Message); } }
public bool CheckLoginNameUnique(string LoginName) { Functions F = new Functions(); bool response = F.IsLoginNameUnique(LoginName); F.Dispose(); return response; }
public bool CheckCardNumberUnique(string CardNumber) { Functions F = new Functions(); bool response = F.IsCardNumberUnique(CardNumber); F.Dispose(); return response; }
public bool CheckAddressPortPair(string Address, int Port) { Functions F = new Functions(); bool response = F.IsAddressUnique(Address,Port); F.Dispose(); return response; }
public Recordings GetSessionById(string Id) { Functions F = new Functions(); Recordings X = F.GetSessionById(Id); F.Dispose(); return X; }
public ForwardingServer GetForwardingServerById(int Id) { Functions F = new Functions(); ForwardingServer X = F.GetForwardingServer(Id); F.Dispose(); return X; }
public StreamingEncoder GetStreamingEncoderById(int Id) { Functions F = new Functions(); StreamingEncoder X = F.GetStreamingEncoder(Id); F.Dispose(); return X; }
public MediaBufferServer GetMediaBufferServerById(int Id) { Functions F = new Functions(); MediaBufferServer X = F.GetMediaBufferServer(Id); F.Dispose(); return X; }
public User GetUserByCardNumber(string CardNumber) { Functions F = new Functions(); User U = F.GetUser(CardNumber); F.Dispose(); return U; }
public Recording GetRecordingById(int Id) { Functions F = new Functions(); Recording X = F.GetRecording(Id); F.Dispose(); return X; }
public User GetUserById(int Id) { Functions F = new Functions(); User U = F.GetUser(Id); F.Dispose(); return U; }
public Recording GetRecordingByName(string RecordingName) { Functions F = new Functions(); Recording R = F.GetRecordingByDescription(RecordingName); F.Dispose(); return R; }
public void InsertPermission(int SectionTypeId,int PermissionId, int TargetSectionTypeId) { OysterClassLibrary.Functions F = new Functions(); F.InsertPermission(SectionTypeId,PermissionId,TargetSectionTypeId); F.Dispose(); }
public Room GetRoomById(int Id) { Functions F = new Functions(); Room X = F.GetRoom(Id); F.Dispose(); return X; }
public void AddRoom(int RoomId) { try { Functions F = new Functions(); F.AddRoom(RoomId,mvarID); F.Dispose(); } catch(Exception Err) { throw new ApplicationException(Err.Message,Err.InnerException); } }
public Section GetSectionById(int Id) { Functions F = new Functions(); Section S = F.GetSection(Id); F.Dispose(); return S; }
public void AddUser(int UserId) { try { Functions F = new Functions(); F.AddUser(UserId,(double)mvarID); F.Dispose(); } catch(Exception Err) { throw new ApplicationException(Err.Message,Err.InnerException); } }
public SectionType GetSectionTypeById(int Id) { Functions F = new Functions(); SectionType X = F.GetSectionType(Id); F.Dispose(); return X; }
public void RemoveUser(int UserId) { try { Functions F = new Functions(); F.RemoveUserFromGroup(UserId,mvarID); F.Dispose(); } catch(Exception Err) { throw new ApplicationException(Err.Message,Err.InnerException); } }
private void OysterTimer_Tick(object source,System.Timers.ElapsedEventArgs e) { try { string sSQL = "UPDATE tblSystem SET SysAdminLastUpdateTime = '" + System.DateTime.Now + "'"; if((SC == null)||(SC.State == ConnectionState.Closed)) { Functions F = new Functions(); //F.ShareOpenConnection(ref SC); string ConnS = F.GetConnectionString(); SC = new SqlConnection(ConnS); F.Dispose(); SC.Open(); } SqlCommand cm = new SqlCommand(sSQL,SC); int numrecs = cm.ExecuteNonQuery(); if(numrecs == 0) throw new ApplicationException("Error writing update to System variable!"); } catch(Exception Err) { throw new ApplicationException(Err.Message); } }