using DbAPI.Connections;
using DTS.Common.Interface.Database;
using DTS.Common.Interface.Groups.GroupList;
using System.Collections.Generic;
using DTS.Common.Interface.Groups;
namespace DbAPI.Groups
{
///
/// Group related functions (GetChannels, )
///
public interface IGroups
{
///
/// Inserts a new record in the Groups table
///
///
///
///
/// 0 (ERROR_SUCCESS) on success, all other values are error codes
ulong GroupsInsert(IUserDbRecord user,
IConnectionDetails connection,
ref IGroupDbRecord group);
///
/// Updates a record in the Groups table
///
///
///
///
/// 0 (ERROR_SUCCESS) on success, all other values are error codes
ulong GroupsUpdate(IUserDbRecord user,
IConnectionDetails connection,
IGroupDbRecord group);
///
///
///
///
///
///
///
///
///
///
///
///
ulong GroupsGet(IUserDbRecord user,
IConnectionDetails connection,
int? id,
string serialNumber,
string displayName,
bool? embedded,
int? staticGroupId,
out IGroupDbRecord[] groups);
///
/// Deletes an entry in the Groups table
///
///
///
/// Id in the Groups table
/// Error string returned, possibly from sp_GroupsDelete
/// 0 (ERROR_SUCCESS) on success, all other values are error codes
ulong GroupsDelete(IUserDbRecord user,
IConnectionDetails connection,
long id,
out string errorString);
}
}