Exemple #1
0
 public RelationshipNotificationEditor(RelationshipNotificationTypeEnum type, int fromId, int toId)
 {
     _entity = new RelationshipNotification
     {
         RNType     = type,
         PostedDate = DateTime.UtcNow,
         IsNew      = true,
         ToUserId   = toId,
         FromUserId = fromId,
     };
 }
        public IRelationshipResponse GetResponseObject(RelationshipNotificationTypeEnum type)
        {
            IRelationshipResponse _response = null;

            switch (type)
            {
            case RelationshipNotificationTypeEnum.QuizzmateRequest:
                _response = new QuizzmateRequestService(_controller);
                break;

            case RelationshipNotificationTypeEnum.QuizzlingRequest:
                _response = new QuizzlingRequestService(_controller);
                break;

            case RelationshipNotificationTypeEnum.AddToClassRequest:
                break;

            default:
                break;
            }

            return(_response);
        }