Merge attribute handling from request and response to commen code.
This commit was merged in pull request #7.
This commit is contained in:
@@ -40,6 +40,10 @@ func (r *resolution) unmarshal(byteStream io.Reader) {
|
||||
binary.Read(byteStream, binary.BigEndian, &r.units)
|
||||
}
|
||||
|
||||
func (r resolution) Name() string {
|
||||
return r.name
|
||||
}
|
||||
|
||||
func (r resolution) String() string {
|
||||
return fmt.Sprintf("%v:%v,%v,%v", r.name, r.crossFeedResolution, r.feedResolution, r.units)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user