Exemple #1
0
        static WebQQClient()
        {
            Mapper.Initialize(x =>
            {
                x.CreateMap <SelfInfo, QQUser>();
                x.CreateMap <GroupInfo, QQGroup>();
                x.CreateMap <GroupMemberCard, GroupMember>();
                x.CreateMap <GroupMemberInfo, GroupMember>();
                x.CreateMap <UserStatus, GroupMember>();
                x.CreateMap <UserVipInfo, GroupMember>();
                x.CreateMap <FriendMarkName, QQFriend>();
                x.CreateMap <FriendBaseInfo, QQFriend>();
                x.CreateMap <UserVipInfo, QQFriend>();
                x.CreateMap <FriendOnlineInfo, QQFriend>();
                x.CreateMap <FriendInfo, QQFriend>();
                x.CreateMap <DiscussionMemberStatus, DiscussionMember>();
            });

            CommonServices.AddSingleton <ILogger, EmptyLogger>();
            CommonServices.AddSingleton <IConfigurationRoot>(p => Startup.BuildConfig());
        }