31 lines
956 B
Plaintext
31 lines
956 B
Plaintext
@startuml
|
|
package com.iluwatar.partialresponse {
|
|
class FieldJsonMapper {
|
|
+ FieldJsonMapper()
|
|
- getString(video : Video, declaredField : Field) : String
|
|
+ toJson(video : Video, fields : String[]) : String
|
|
}
|
|
class Video {
|
|
- description : String
|
|
- director : String
|
|
- id : Integer
|
|
- language : String
|
|
- length : Integer
|
|
- title : String
|
|
+ Video(id : Integer, title : String, length : Integer, description : String, director : String, language : String)
|
|
+ toString() : String
|
|
}
|
|
class VideoClientApp {
|
|
- LOGGER : Logger {static}
|
|
+ VideoClientApp()
|
|
+ main(args : String[]) {static}
|
|
}
|
|
class VideoResource {
|
|
- fieldJsonMapper : FieldJsonMapper
|
|
- videos : Map<Integer, Video>
|
|
+ VideoResource(fieldJsonMapper : FieldJsonMapper, videos : Map<Integer, Video>)
|
|
+ getDetails(id : Integer, fields : String[]) : String
|
|
}
|
|
}
|
|
VideoResource --> "-fieldJsonMapper" FieldJsonMapper
|
|
@enduml |