| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package com.base.Http.Server.Responses.ChannelMember; |
||
| 8 | public class GetChannelMemberResponse extends BaseResponse { |
||
| 9 | |||
| 10 | |||
| 11 | public static String VALID_TEAM_SLUG = "twitter"; |
||
| 12 | public static String VALID_CHANNEL_SLUG= "twitter"; |
||
| 13 | public static int VALID_USER_ID = 1; |
||
| 14 | public static String VALID_USER_NAME = "Sharvil"; |
||
| 15 | public static String VALID_USER_EMAIL = "[email protected]"; |
||
| 16 | |||
| 17 | public static String INVALID_USER_EMAIL = "[email protected]"; |
||
| 18 | |||
| 19 | @Override |
||
| 20 | public Response getResponse(Request request, Response response) { |
||
| 21 | return response.setStatusCode(200) |
||
| 22 | .setBody(generateResponseBody(getUser())); |
||
| 23 | } |
||
| 24 | |||
| 25 | private User getUser() { |
||
| 26 | return (User) new User() |
||
| 27 | .setEmail(VALID_USER_EMAIL) |
||
| 28 | .setName(VALID_USER_NAME) |
||
| 29 | .setId(VALID_USER_ID); |
||
| 30 | } |
||
| 32 |