Class ApprovalInfo


  • public class ApprovalInfo
    extends AccountInfo
    Representation of an approval in the REST API.

    This class determines the JSON format of approvals in the REST API.

    An approval is a vote of a user for a label on a change.

    • Field Detail

      • tag

        public String tag
        Tag that was set when posting the review that created this approval.

        Web UIs may use the tag to filter out approvals, e.g. initially hide approvals that have a tag that starts with the autogenerated: prefix.

      • value

        public Integer value
        The vote that the user has given for the label.

        If present and zero, the user is permitted to vote on the label. If absent, the user is not permitted to vote on that label.

      • date

        public Timestamp date
        The time and date describing when the approval was made.
      • postSubmit

        public Boolean postSubmit
        Whether this vote was made after the change was submitted.
      • permittedVotingRange

        public VotingRangeInfo permittedVotingRange
        The range the user is authorized to vote on that label.

        If present, the user is permitted to vote on the label regarding the range values. If absent, the user is not permitted to vote on that label.