Ejemplo n.º 1
0
 public ITextGraphDataCollection MessageCountPerUnitTime(IConversation conversation, GraphTimeUnit timeUnit)
 {
     switch (timeUnit)
     {
         case GraphTimeUnit.Month:
             return GetPerMonthDataCollection(conversation);
         default:
             throw new ArgumentException("Invalid graph type", "timeUnit");
     }
 }
Ejemplo n.º 2
0
        public ITextGraphDataCollection MessageCountPerUnitTime(IConversation conversation, GraphTimeUnit timeUnit)
        {
            switch (timeUnit)
            {
            case GraphTimeUnit.Month:
                return(GetPerMonthDataCollection(conversation));

            default:
                throw new ArgumentException("Invalid graph type", "timeUnit");
            }
        }
Ejemplo n.º 3
0
        public List <ITextGraphData> GetConversationGraphData(DummyPhoneNumberId DummyPhoneNumberId, GraphTimeUnit timeUnit)
        {
            IConversation      conversation = DummyConversationDataGenerator.GetSingleConversation(DummyPhoneNumberId);
            GraphDataGenerator generator    = new GraphDataGenerator();

            return(new List <ITextGraphData>(generator.MessageCountPerUnitTime(conversation, timeUnit)));
        }
Ejemplo n.º 4
0
 public List<ITextGraphData> GetConversationGraphData(DummyPhoneNumberId DummyPhoneNumberId, GraphTimeUnit timeUnit)
 {
     IConversation conversation = DummyConversationDataGenerator.GetSingleConversation(DummyPhoneNumberId);
     GraphDataGenerator generator = new GraphDataGenerator();
     return new List<ITextGraphData>(generator.MessageCountPerUnitTime(conversation, timeUnit));
 }