Java
Copied to your clipboardpublic enum ContentType {APPLICATION_JSON(0),TEXT_HTML(1),TEXT_XML(2),TEXT_PLAIN(3),UNKNOWN(4);@Overridepublic String toString();}
Swift
Copied to your clipboard@objc(AEPContentType)public enum ContentType: Int, Codable {case applicationJson = 0case textHtml = 1case textXml = 2case textPlain = 3case unknown = 4public func toString() -> String}
| Case | String value |
|---|---|
APPLICATION_JSON | application/json |
TEXT_HTML | text/html |
TEXT_XML | text/xml |
TEXT_PLAIN | text/plain |
UNKNOWN | (empty string) |
| Case | String value |
|---|---|
.applicationJson | application/json |
.testHtml | text/html |
.textXml | text/xml |
.textPlain | text/plain |
.unknown | (empty string) |
