package Ġcom . github . jk 1 . y tpl ugin . issues . model Ċ Ċ import Ġcom . google . gson . Json Element Ċ import Ġcom . google . gson . Json Null Ċ import Ġcom . intellij . tasks . Comment Ċ import Ġjava . util .* ĊĊ Ċ class ĠIssue Comment ( item : ĠJson Element ) Ġ{ ĊĊĠĠĠ Ġval Ġid : ĠString Ġ= Ġitem . as JsonObject . get (" id "). asString ĊĠĠĠ Ġval Ġauthor Name : ĠString Ġ= Ġitem . as JsonObject . get (" author "). as JsonObject . get (" name "). asString ĊĠĠĠ Ġval Ġtext : ĠString Ġ= Ġitem . as JsonObject . get (" text Preview "). asString ĊĠĠĠ Ġval Ġcreated : ĠDate Ġ= ĠDate ( item . as JsonObject . get (" created "). as Long ) ĊĠĠĠ Ġval Ġdeleted Ġ= Ġitem . as JsonObject . get (" deleted "). as Boolean ĊĠĠĠ Ġval Ġupdated : ĠDate ? Ġ= Ġwhen Ġ( item . as JsonObject . get (" updated ")) Ġ{ ĊĠĠĠĠĠĠĠ Ġis ĠJson Null Ġ-> Ġnull ĊĠĠĠĠĠĠĠ Ġelse Ġ-> ĠDate ( item . as JsonObject . get (" updated "). as Long ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġas Task Manager Comment () Ġ= Ġobject Ġ: ĠComment () Ġ{ ĊĠĠĠĠĠĠĠ Ġoverride Ġfun ĠgetText () Ġ= Ġthis @ Issue Comment . text ĊĠĠĠĠĠĠĠ Ġoverride Ġfun Ġget Date () Ġ= Ġthis @ Issue Comment . created ĊĠĠĠĠĠĠĠ Ġoverride Ġfun Ġget Author () Ġ= Ġthis @ Issue Comment . author Name ĊĠĠĠ Ġ} Ċ }