using System;
using SiberTek.Xenta.Data.Entities;
using SiberTek.Xenta.Data.Entities.Collections;
using SiberTek.Xenta.Enums;
namespace SiberTek.Xenta.Data.Providers
{
/// <summary>
/// Defines poll data provider methods
/// </summary>
public interface IPollDataProvider : IDataProvider
{
#region Methods
#region C
bool InsertPoll(int languageID, string title, DateTime startDate, DateTime endDate, bool isActive, DateTime createdOn, DateTime updatedOn, out int pollID);
#endregion
#region R
PollData GetPoll(int pollID);
PollDataCollection GetAllPolls(int? languageID, DateTime? startDate, DateTime? endDate, DateTime? createdOnStart, DateTime? createdOnEnd, bool showHidden);
#endregion
#region U
bool UpdatePoll(int pollID, int languageID, string title, DateTime startDate, DateTime endDate, bool isActive, DateTime createdOn, DateTime updatedOn);
#endregion
#region D
bool DeletePoll(int pollID);
#endregion
#endregion
}
}