using DbAPI.Connections; using DTS.Common.Interface.Database; using DTS.Common.Interface.Groups.GroupList; using System.Collections.Generic; using DTS.Common.Interface.Groups; using DTS.Common.Classes.Groups; namespace DbAPI.GroupHardware { /// /// GroupHardware related functions /// public interface IGroupHardware { /// /// Inserts a new record in the GroupHardware table /// /// /// /// /// /// /// 0 (ERROR_SUCCESS) on success, all other values are error codes ulong GroupHardwareInsert(IUserDbRecord user, IConnectionDetails connection, GroupHardwareDbRecord groupHardware, out int newId, out string errorMessage); /// /// Gets one or more records from the GroupHardware table /// /// /// /// /// /// /// /// ulong GroupHardwareGet(IUserDbRecord user, IConnectionDetails connection, int? groupId, string serialNumber, bool? embedded, out GroupHardwareDbRecord[] groupHardwareRecords); /// /// Deletes an entry in the GroupHardware table /// /// /// /// Id in the GroupHardware table /// Id in the GroupHardware table /// Error string returned, possibly from sp_GroupsDelete /// 0 (ERROR_SUCCESS) on success, all other values are error codes ulong GroupHardwareDelete(IUserDbRecord user, IConnectionDetails connection, int? groupId, int? dasId, out string errorString); } }