< Summary

Class:Decentraland.Social.Friendships.ClientFriendshipsService
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Decentraland/social/friendships/ClientFriendshipsService.gen.cs
Covered lines:0
Uncovered lines:8
Coverable lines:8
Total lines:59
Line coverage:0% (0 of 8)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:6
Method coverage:0% (0 of 6)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
ClientFriendshipsService(...)0%2100%
GetFriends(...)0%2100%
GetMutualFriends(...)0%2100%
GetRequestEvents(...)0%2100%
UpdateFriendshipEvent(...)0%2100%
SubscribeFriendshipEventsUpdates(...)0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Decentraland/social/friendships/ClientFriendshipsService.gen.cs

#LineLine coverage
 1
 2// AUTOGENERATED, DO NOT EDIT
 3// Type definitions for server implementations of ports.
 4// package: decentraland.social.friendships
 5// file: decentraland/social/friendships/friendships.proto
 6using Cysharp.Threading.Tasks;
 7using rpc_csharp;
 8
 9namespace Decentraland.Social.Friendships {
 10public interface IClientFriendshipsService
 11{
 12  IUniTaskAsyncEnumerable<UsersResponse> GetFriends(Payload request);
 13
 14  IUniTaskAsyncEnumerable<UsersResponse> GetMutualFriends(MutualFriendsPayload request);
 15
 16  UniTask<RequestEventsResponse> GetRequestEvents(Payload request);
 17
 18  UniTask<UpdateFriendshipResponse> UpdateFriendshipEvent(UpdateFriendshipPayload request);
 19
 20  IUniTaskAsyncEnumerable<SubscribeFriendshipEventsUpdatesResponse> SubscribeFriendshipEventsUpdates(Payload request);
 21}
 22
 23public class ClientFriendshipsService : IClientFriendshipsService
 24{
 25  private readonly RpcClientModule module;
 26
 027  public ClientFriendshipsService(RpcClientModule module)
 28  {
 029      this.module = module;
 030  }
 31
 32
 33  public IUniTaskAsyncEnumerable<UsersResponse> GetFriends(Payload request)
 34  {
 035      return module.CallServerStream<UsersResponse>("GetFriends", request);
 36  }
 37
 38  public IUniTaskAsyncEnumerable<UsersResponse> GetMutualFriends(MutualFriendsPayload request)
 39  {
 040      return module.CallServerStream<UsersResponse>("GetMutualFriends", request);
 41  }
 42
 43  public UniTask<RequestEventsResponse> GetRequestEvents(Payload request)
 44  {
 045      return module.CallUnaryProcedure<RequestEventsResponse>("GetRequestEvents", request);
 46  }
 47
 48  public UniTask<UpdateFriendshipResponse> UpdateFriendshipEvent(UpdateFriendshipPayload request)
 49  {
 050      return module.CallUnaryProcedure<UpdateFriendshipResponse>("UpdateFriendshipEvent", request);
 51  }
 52
 53  public IUniTaskAsyncEnumerable<SubscribeFriendshipEventsUpdatesResponse> SubscribeFriendshipEventsUpdates(Payload requ
 54  {
 055      return module.CallServerStream<SubscribeFriendshipEventsUpdatesResponse>("SubscribeFriendshipEventsUpdates", reque
 56  }
 57
 58}
 59}