def parse(cls, body: Dict):
     return cls(
         Recipient.parse_optional(body.get("author")),
         [Recipient.parse(reviewer) for reviewer in body["reviewers"]],
         body["commentCount"],
         body["transactionLink"],
     )
Beispiel #2
0
 def parse(cls, body: Dict):
     return cls(
         Recipient.parse(body["recipient"]),
         body.get("pingedMainComment"),
         InlineComment.parse_many(body["pingedInlineComments"]),
         body["transactionLink"],
     )
Beispiel #3
0
 def parse(cls, body: Dict):
     return cls(
         body.get("mainComment"),
         InlineComment.parse_many(body["inlineComments"]),
         body["transactionLink"],
         [Recipient.parse(reviewer) for reviewer in body["reviewers"]],
     )
Beispiel #4
0
 def parse(cls, body: Dict):
     return cls(
         body.get("mainComment"),
         InlineComment.parse_many(body["inlineComments"]),
         body["transactionLink"],
         body.get("landoLink"),
         body["isReadyToLand"],
         Recipient.parse_optional(body.get("author")),
         [Recipient.parse(reviewer) for reviewer in body["reviewers"]],
     )
 def parse(cls, body: Dict):
     return cls(
         [Recipient.parse(reviewer) for reviewer in body["reviewers"]],
         body["commentCount"],
         body["transactionLink"],
     )
 def parse(cls, body: Dict):
     return cls(
         Recipient.parse(body["recipient"]),
         body["transactionLink"],
     )