com.base.Http.Server.Responses.Channel.DeleteChannelResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getResponse(Request,Response) 0 4 1
1
package com.base.Http.Server.Responses.Channel;
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 DeleteChannelResponse extends BaseResponse {
8
9
    public static String VALID_TEAM_SLUG = "twitter";
10
    public static String VALID_CHANNEL_SLUG = "design-1";
11
    public static String VALID_DELETED_CHANNEL_SLUG = "design-1";
12
13
    @Override
14
    public Response getResponse(Request request, Response response) {
15
        return response.setStatusCode(200)
16
                .setBody("");
17
    }
18
}
19