internal static FB_PlanDeleted _parse(Session session, JToken data) { (FB_User author, FB_Thread thread, long at) = FB_PlanDeleted._parse_metadata(session, data); var plan = FB_Plan._from_pull(data?.get("untypedData"), session); return(new FB_PlanDeleted() { author = author, thread = thread, plan = plan, at = at }); }
internal static FB_PlanResponded _parse(Session session, JToken data) { (FB_User author, FB_Thread thread, long at) = FB_PlanResponded._parse_metadata(session, data); var plan = FB_Plan._from_pull(data?.get("untypedData"), session); var take_part = data.get("untypedData")?.get("guest_status")?.Value <string>() == "GOING"; return(new FB_PlanResponded() { author = author, thread = thread, plan = plan, take_part = take_part, at = at }); }