Completed
Pull Request — master (#24)
by
unknown
04:21
created

com.base.Http.Server.Responses.ChannelMember.CreateChannelMemberResponse   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getResponse(Request,Response) 0 4 1
1
package com.base.Http.Server.Responses.ChannelMember;
2
3
import com.base.Http.Request.Request;
4
import com.base.Http.Response.Response;
5
import com.base.Http.Server.Responses.BaseResponse;
6
7
public class CreateChannelMemberResponse extends BaseResponse {
8
9
    public static String VALID_USER_ID = "1";
10
    public static String VALID_TEAM_SLUG = "twitter";
11
    public static String VALID_CHANNEL_SLUG = "design";
12
    public static String INVALID_CHANNEL_SLUG = "design-1";
13
    public static String INVALID_TEAM_SLUG = "twitter-1";
14
15
    @Override
16
    public Response getResponse(Request request, Response response) {
17
        return response.setStatusCode(200)
18
                .setBody("");
19
    }
20
}
21