#631 - Partial Response : Add puml file

This commit is contained in:
Gopinath Langote 2017-09-14 21:52:07 +05:30
parent c89bf0eb44
commit c5b9c63b39

View File

@ -0,0 +1,25 @@
@startuml
package com.iluwatar.partialresponse {
class FieldJsonMapper {
+ FieldJsonMapper()
+ 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 VideoResource {
- fieldJsonMapper : FieldJsonMapper
- videos : Map<Integer, Video>
+ VideoResource(fieldJsonMapper : FieldJsonMapper, videos : Map<Integer, Video>)
+ getDetails(id : Integer, fields : String[]) : String
}
}
VideoResource --> "-fieldJsonMapper" FieldJsonMapper
@enduml