~dricottone/digestion

ref: 62eccd92f6655185139d9015022c8b9953a51521 digestion/message/part.go -rw-r--r-- 424 bytes
62eccd92Dominic Ricottone Refactored into subdirectories; Added common decoders 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package message

import (
	"git.dominic-ricottone.com/digestion/decoder"
)

type MessagePart struct {
	Header      *MessagePartHeader
	Content     []string
}

func NewPart() *MessagePart {
	return &MessagePart{NewPartHeader(), []string{""}}
}

func (m *MessagePart) evaluateContentType() int {
	return 0
}

func (m *MessagePart) evaluateContentEncoding() int {
	return decoder.EvaluateEncoding(m.Header.ContentEncoding)
}