public List<Community> GetMoreCreatedByUser(int userId, int skip)
 {
     using (var svc = new ServiceProxyHelper<ICommunityService>("CommunityService"))
     {
         return svc.Proxy.GetMoreCreatedByUser(userId, skip);
     }
 }
 public ChatMessage AddChatMessage(ChatMessage chatMessage)
 {
     using (var svc = new ServiceProxyHelper<IChatMessagesService>("ChatMessagesService"))
     {
         return svc.Proxy.AddChatMessage(chatMessage);
     }
 }
 public List<ChatMessage> GetMoreChatMessagesByUserIds(int fromUserId, int toUserId, int skip = 25)
 {
     using (var svc = new ServiceProxyHelper<IChatMessagesService>("ChatMessagesService"))
     {
         return svc.Proxy.GetMoreChatMessagesByUserIds(fromUserId, toUserId, skip);
     }
 }
 public Community Add(Community community)
 {
     using (var svc = new ServiceProxyHelper<ICommunityService>("CommunityService"))
     {
         return svc.Proxy.Add(community);
     }
 }
 public ChatMessagesList GetChatMessagesListByUsername(string username)
 {
     using (var svc = new ServiceProxyHelper<IChatMessagesService>("ChatMessagesService"))
     {
         return svc.Proxy.GetChatMessagesListByUsername(username);
     }
 }
示例#6
0
 public Address Update(Address address)
 {
     using (var svc = new ServiceProxyHelper<IAddressService>("AddressService"))
     {
         return svc.Proxy.Update(address);
     }
 }
示例#7
0
 public List<Post> GetMorePostsByUser(int userId, int skip)
 {
     using (var svc = new ServiceProxyHelper<IPostsService>("PostsService"))
     {
         return svc.Proxy.GetMorePostsByUser(userId, skip);
     }
 }
 public bool GetHeartBeat()
 {
     using (var svc = new ServiceProxyHelper<IChatMessagesService>("ChatMessagesService"))
     {
         return svc.Proxy.GetHeartBeat();
     }
 }
示例#9
0
 public Post GetPost(int postId)
 {
     using (var svc = new ServiceProxyHelper<IPostsService>("PostsService"))
     {
         return svc.Proxy.GetPost(postId);
     }
 }
示例#10
0
 public List<Post> GetPostsByCommunity(int communityId, int threshold = 10, int skip = 10)
 {
     using (var svc = new ServiceProxyHelper<IPostsService>("PostsService"))
     {
         return svc.Proxy.GetPostsByCommunity(communityId, threshold, skip);
     }
 }
示例#11
0
 public void Add(ViewCount viewCount)
 {
     using (var svc = new ServiceProxyHelper<IViewCountService>("ViewCountService"))
     {
         svc.Proxy.Add(viewCount);
     }
 }
示例#12
0
 public bool Delete(int hobbyId)
 {
     using (var svc = new ServiceProxyHelper<IHobbyService>("HobbyService"))
     {
         return svc.Proxy.Delete(hobbyId);
     }
 }
示例#13
0
 public bool GetHeartBeat()
 {
     using (var svc = new ServiceProxyHelper<IPostLikesService>("PostLikesService"))
     {
         return svc.Proxy.GetHeartBeat();
     }
 }
示例#14
0
 public List<ViewCount> Get(int postId)
 {
     using (var svc = new ServiceProxyHelper<IViewCountService>("ViewCountService"))
     {
         return svc.Proxy.Get(postId);
     }
 }
示例#15
0
 public void Add(PostLike postLike)
 {
     using (var svc = new ServiceProxyHelper<IPostLikesService>("PostLikesService"))
     {
         svc.Proxy.Add(postLike);
     }
 }
示例#16
0
 public List<PostLike> Get(int postId)
 {
     using (var svc = new ServiceProxyHelper<IPostLikesService>("PostLikesService"))
     {
         return svc.Proxy.Get(postId);
     }
 }
示例#17
0
 public bool Delete(int addressId)
 {
     using (var svc = new ServiceProxyHelper<IAddressService>("AddressService"))
     {
         return svc.Proxy.Delete(addressId);
     }
 }
示例#18
0
 public List<Hobby> GetByUser(int userId)
 {
     using (var svc = new ServiceProxyHelper<IHobbyService>("HobbyService"))
     {
         return svc.Proxy.GetByUser(userId);
     }
 }
示例#19
0
 public bool GetHeartBeat()
 {
     using (var svc = new ServiceProxyHelper<IViewCountService>("ViewCountService"))
     {
         return svc.Proxy.GetHeartBeat();
     }
 }
示例#20
0
 public Hobby Update(Hobby hobby)
 {
     using (var svc = new ServiceProxyHelper<IHobbyService>("HobbyService"))
     {
         return svc.Proxy.Update(hobby);
     }
 }
示例#21
0
 public Community Get(int communityId)
 {
     using (var svc = new ServiceProxyHelper<ICommunityService>("CommunityService"))
     {
         return svc.Proxy.Get(communityId);
     }
 }
示例#22
0
 public bool GetHeartBeat()
 {
     using (var svc = new ServiceProxyHelper<IHobbyService>("HobbyService"))
     {
         return svc.Proxy.GetHeartBeat();
     }
 }
示例#23
0
 public List<Community> GetList()
 {
     using (var svc = new ServiceProxyHelper<ICommunityService>("CommunityService"))
     {
         return svc.Proxy.GetList();
     }
 }
示例#24
0
 public RelatedPosts GetRelatedPosts(int postId)
 {
     using (var svc = new ServiceProxyHelper<IPostsService>("PostsService"))
     {
         return svc.Proxy.GetRelatedPosts(postId);
     }
 }
示例#25
0
 public List<Community> GetMore(int skip)
 {
     using (var svc = new ServiceProxyHelper<ICommunityService>("CommunityService"))
     {
         return svc.Proxy.GetMore(skip);
     }
 }
示例#26
0
 public List<Post> GetMorePostsByTag(string tagName, int skip)
 {
     using (var svc = new ServiceProxyHelper<IPostsService>("PostsService"))
     {
         return svc.Proxy.GetMorePostsByTag(tagName, skip);
     }
 }
示例#27
0
 public List<Community> GetJoinedByUser(int userId)
 {
     using (var svc = new ServiceProxyHelper<ICommunityService>("CommunityService"))
     {
         return svc.Proxy.GetJoinedByUser(userId);
     }
 }
示例#28
0
 public List<Post> GetMorePopularPosts(int postsCount, int skip)
 {
     using (var svc = new ServiceProxyHelper<IPostsService>("PostsService"))
     {
         return svc.Proxy.GetMorePopularPosts(postsCount, skip);
     }
 }
 public List<ChatMessage> GetMoreChatMessagesByUsernames(string fromUsername, string toUsername, int skip = 25)
 {
     using (var svc = new ServiceProxyHelper<IChatMessagesService>("ChatMessagesService"))
     {
         return svc.Proxy.GetMoreChatMessagesByUsernames(fromUsername, toUsername, skip);
     }
 }
 public ChatMessagesList GetChatMessagesListByUserId(int userId)
 {
     using (var svc = new ServiceProxyHelper<IChatMessagesService>("ChatMessagesService"))
     {
         return svc.Proxy.GetChatMessagesListByUserId(userId);
     }
 }
 public static MvcHtmlString FacebookProfileImage(this ServiceProxyHelper helper, string id, object htmlAttributes = null)
 {
     return(new TagBuilder("img")
            .Attr("src", string.Format(ProfileImageUrlFormat, id))
            .AttrsIf(htmlAttributes != null, htmlAttributes)
            .ToHtml());
 }
示例#32
0
        public static MvcHtmlString Analytics(this ServiceProxyHelper helper, string trackingId)
        {
            return(new TagBuilder("script")
                   .Attr("type", "text/javascript")
                   .Html(@"
              var _gaq = _gaq || [];
              _gaq.push(['_setAccount', '" + MvcHtmlString.Create(trackingId).ToString() + @"']);
              _gaq.push(['_trackPageview']);

              (function() {
                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
              })();
")
                   .ToHtml());
        }
示例#33
0
 GetImageEntriesResult IStudyStoreQuery.GetImageEntries(GetImageEntriesRequest request)
 {
     return(ServiceProxyHelper.Call(GetImageEntries, request));
 }
示例#34
0
 GetStudyCountResult IStudyStoreQuery.GetStudyCount(GetStudyCountRequest request)
 {
     return(ServiceProxyHelper.Call(GetStudyCount, request));
 }
 public static MvcHtmlString FacebookProfileImage(this ServiceProxyHelper helper, object htmlAttributes = null)
 {
     return(helper.FacebookProfileImage("me", htmlAttributes));
 }