Clover icon

sunshower-sdk

  1. Project Clover database Sat May 12 2018 05:15:40 UTC
  2. Package io.sunshower.sdk.channel

File Message.java

 

Coverage histogram

../../../../img/srcFileCovDistChart10.png
0% of files have more coverage

Code metrics

0
1
1
1
38
30
1
1
1
1
1

Classes

Class Line # Actions
Message 20 1 1
1.0100%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    package io.sunshower.sdk.channel;
2   
3    import io.sunshower.common.Identifier;
4    import io.sunshower.common.rs.ClassAdapter;
5    import io.sunshower.common.rs.IdentifierConverter;
6    import io.sunshower.sdk.v1.model.core.element.AbstractElement;
7    import lombok.*;
8   
9    import javax.xml.bind.annotation.XmlAttribute;
10    import javax.xml.bind.annotation.XmlElement;
11    import javax.xml.bind.annotation.XmlRootElement;
12    import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
13   
14    @Getter
15    @Setter
16    @Builder
17    @NoArgsConstructor
18    @AllArgsConstructor
19    @XmlRootElement(name = "message")
 
20    public class Message extends AbstractElement<Message> {
21   
 
22  20 toggle {
23  20 setType(Message.class);
24    }
25   
26    @XmlAttribute(name = "media-type")
27    private String mediaType;
28   
29    @XmlAttribute(name = "payload-type")
30    @XmlJavaTypeAdapter(ClassAdapter.class)
31    private Class<?> payloadType;
32   
33    @XmlElement private String payload;
34   
35    @XmlAttribute
36    @XmlJavaTypeAdapter(IdentifierConverter.class)
37    private Identifier channelId;
38    }