Ejemplo n.º 1
0
        public override GetGroupsApiMahuaCommandResult Handle(
            GetGroupsApiMahuaCommand message)
        {
            var source = CoolQApi.CQ_getGroupList(AuthCode);
            var re     = new GetGroupsApiMahuaCommandResult
            {
                GroupsString = source
            };

            return(re);
        }
Ejemplo n.º 2
0
        public override GetGroupsWithModelApiMahuaCommandResult Handle(
            GetGroupsWithModelApiMahuaCommand message)
        {
            var source = CoolQApi.CQ_getGroupList(AuthCode);
            var modelWithSourceString = new ModelWithSourceString <IEnumerable <GroupInfo> >
            {
                SourceString = source,
                Model        = _groupInfoSerializer.DeserializeGroupInfos(source),
            };
            var re = new GetGroupsWithModelApiMahuaCommandResult
            {
                ModelWithSourceString = modelWithSourceString
            };

            return(re);
        }