yangys
2024-04-05 84dea9976c29ac938fa018b8566c71461b056418
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
package com.qianwen.core.notify.external;
 
import java.util.Map;
import com.qianwen.core.tool.metadata.ValueObject;
 
/* loaded from: blade-starter-notify-9.3.0.0-SNAPSHOT.jar:org/springblade/core/notify/external/SubscribeRequest.class */
public class SubscribeRequest implements ValueObject {
    private String id;
    private String topic;
    private Map<String, Object> parameter;
    private Long userId;
 
    /* loaded from: blade-starter-notify-9.3.0.0-SNAPSHOT.jar:org/springblade/core/notify/external/SubscribeRequest$SubscribeRequestBuilder.class */
    public static class SubscribeRequestBuilder {
        private String id;
        private String topic;
        private Map<String, Object> parameter;
        private Long userId;
 
        SubscribeRequestBuilder() {
        }
 
        public SubscribeRequestBuilder id(final String id) {
            this.id = id;
            return this;
        }
 
        public SubscribeRequestBuilder topic(final String topic) {
            this.topic = topic;
            return this;
        }
 
        public SubscribeRequestBuilder parameter(final Map<String, Object> parameter) {
            this.parameter = parameter;
            return this;
        }
 
        public SubscribeRequestBuilder userId(final Long userId) {
            this.userId = userId;
            return this;
        }
 
        public SubscribeRequest build() {
            return new SubscribeRequest(this.id, this.topic, this.parameter, this.userId);
        }
 
        public String toString() {
            return "SubscribeRequest.SubscribeRequestBuilder(id=" + this.id + ", topic=" + this.topic + ", parameter=" + this.parameter + ", userId=" + this.userId + ")";
        }
    }
 
    public void setId(final String id) {
        this.id = id;
    }
 
    public void setTopic(final String topic) {
        this.topic = topic;
    }
 
    public void setParameter(final Map<String, Object> parameter) {
        this.parameter = parameter;
    }
 
    public void setUserId(final Long userId) {
        this.userId = userId;
    }
 
    public static SubscribeRequestBuilder builder() {
        return new SubscribeRequestBuilder();
    }
 
    public SubscribeRequest() {
    }
 
    public SubscribeRequest(final String id, final String topic, final Map<String, Object> parameter, final Long userId) {
        this.id = id;
        this.topic = topic;
        this.parameter = parameter;
        this.userId = userId;
    }
 
    public String getId() {
        return this.id;
    }
 
    public String getTopic() {
        return this.topic;
    }
 
    public Map<String, Object> getParameter() {
        return this.parameter;
    }
 
    public Long getUserId() {
        return this.userId;
    }
 
    public Map<String, Object> values() {
        return this.parameter;
    }
 
    public static SubscribeRequest of(MessagingRequest request, Long userId) {
        return builder().id(request.getId()).topic(request.getTopic()).parameter(request.getParameter()).userId(userId).build();
    }
}