|
| 1 | +# coding: utf-8 |
| 2 | + |
| 3 | +""" |
| 4 | + Generated by: https://openapi-generator.tech |
| 5 | +""" |
| 6 | + |
| 7 | +import pprint |
| 8 | +import re # noqa: F401 |
| 9 | + |
| 10 | +import six |
| 11 | + |
| 12 | +from regula.documentreader.webclient.gen.configuration import Configuration |
| 13 | +# this line was added to enable pycharm type hinting |
| 14 | +from regula.documentreader.webclient.gen.models import * |
| 15 | + |
| 16 | + |
| 17 | +""" |
| 18 | +
|
| 19 | +""" |
| 20 | +class BcPDF417INFO(object): |
| 21 | + """NOTE: This class is auto generated by OpenAPI Generator. |
| 22 | + Ref: https://openapi-generator.tech |
| 23 | +
|
| 24 | + Do not edit the class manually. |
| 25 | + """ |
| 26 | + |
| 27 | + """ |
| 28 | + Attributes: |
| 29 | + openapi_types (dict): The key is attribute name |
| 30 | + and the value is attribute type. |
| 31 | + attribute_map (dict): The key is attribute name |
| 32 | + and the value is json key in definition. |
| 33 | + """ |
| 34 | + openapi_types = { |
| 35 | + 'angle': 'float', |
| 36 | + 'bc_column': 'int', |
| 37 | + 'bc_error_level': 'int', |
| 38 | + 'bc_row': 'int', |
| 39 | + 'min_x': 'float', |
| 40 | + 'min_y': 'float' |
| 41 | + } |
| 42 | + |
| 43 | + attribute_map = { |
| 44 | + 'angle': 'Angle', |
| 45 | + 'bc_column': 'bcColumn', |
| 46 | + 'bc_error_level': 'bcErrorLevel', |
| 47 | + 'bc_row': 'bcRow', |
| 48 | + 'min_x': 'minX', |
| 49 | + 'min_y': 'minY' |
| 50 | + } |
| 51 | + |
| 52 | + def __init__(self, angle=None, bc_column=None, bc_error_level=None, bc_row=None, min_x=None, min_y=None, local_vars_configuration=None): # noqa: E501 |
| 53 | + """BcPDF417INFO - a model defined in OpenAPI""" # noqa: E501 |
| 54 | + if local_vars_configuration is None: |
| 55 | + local_vars_configuration = Configuration() |
| 56 | + self.local_vars_configuration = local_vars_configuration |
| 57 | + |
| 58 | + self._angle = None |
| 59 | + self._bc_column = None |
| 60 | + self._bc_error_level = None |
| 61 | + self._bc_row = None |
| 62 | + self._min_x = None |
| 63 | + self._min_y = None |
| 64 | + self.discriminator = None |
| 65 | + |
| 66 | + if angle is not None: |
| 67 | + self.angle = angle |
| 68 | + if bc_column is not None: |
| 69 | + self.bc_column = bc_column |
| 70 | + if bc_error_level is not None: |
| 71 | + self.bc_error_level = bc_error_level |
| 72 | + if bc_row is not None: |
| 73 | + self.bc_row = bc_row |
| 74 | + if min_x is not None: |
| 75 | + self.min_x = min_x |
| 76 | + if min_y is not None: |
| 77 | + self.min_y = min_y |
| 78 | + |
| 79 | + @property |
| 80 | + def angle(self): |
| 81 | + """Gets the angle of this BcPDF417INFO. # noqa: E501 |
| 82 | +
|
| 83 | +
|
| 84 | + :return: The angle of this BcPDF417INFO. # noqa: E501 |
| 85 | + :rtype: float |
| 86 | + """ |
| 87 | + return self._angle |
| 88 | + |
| 89 | + @angle.setter |
| 90 | + def angle(self, angle): |
| 91 | + """Sets the angle of this BcPDF417INFO. |
| 92 | +
|
| 93 | +
|
| 94 | + :param angle: The angle of this BcPDF417INFO. # noqa: E501 |
| 95 | + :type angle: float |
| 96 | + """ |
| 97 | + |
| 98 | + self._angle = angle |
| 99 | + |
| 100 | + @property |
| 101 | + def bc_column(self): |
| 102 | + """Gets the bc_column of this BcPDF417INFO. # noqa: E501 |
| 103 | +
|
| 104 | +
|
| 105 | + :return: The bc_column of this BcPDF417INFO. # noqa: E501 |
| 106 | + :rtype: int |
| 107 | + """ |
| 108 | + return self._bc_column |
| 109 | + |
| 110 | + @bc_column.setter |
| 111 | + def bc_column(self, bc_column): |
| 112 | + """Sets the bc_column of this BcPDF417INFO. |
| 113 | +
|
| 114 | +
|
| 115 | + :param bc_column: The bc_column of this BcPDF417INFO. # noqa: E501 |
| 116 | + :type bc_column: int |
| 117 | + """ |
| 118 | + |
| 119 | + self._bc_column = bc_column |
| 120 | + |
| 121 | + @property |
| 122 | + def bc_error_level(self): |
| 123 | + """Gets the bc_error_level of this BcPDF417INFO. # noqa: E501 |
| 124 | +
|
| 125 | +
|
| 126 | + :return: The bc_error_level of this BcPDF417INFO. # noqa: E501 |
| 127 | + :rtype: int |
| 128 | + """ |
| 129 | + return self._bc_error_level |
| 130 | + |
| 131 | + @bc_error_level.setter |
| 132 | + def bc_error_level(self, bc_error_level): |
| 133 | + """Sets the bc_error_level of this BcPDF417INFO. |
| 134 | +
|
| 135 | +
|
| 136 | + :param bc_error_level: The bc_error_level of this BcPDF417INFO. # noqa: E501 |
| 137 | + :type bc_error_level: int |
| 138 | + """ |
| 139 | + |
| 140 | + self._bc_error_level = bc_error_level |
| 141 | + |
| 142 | + @property |
| 143 | + def bc_row(self): |
| 144 | + """Gets the bc_row of this BcPDF417INFO. # noqa: E501 |
| 145 | +
|
| 146 | +
|
| 147 | + :return: The bc_row of this BcPDF417INFO. # noqa: E501 |
| 148 | + :rtype: int |
| 149 | + """ |
| 150 | + return self._bc_row |
| 151 | + |
| 152 | + @bc_row.setter |
| 153 | + def bc_row(self, bc_row): |
| 154 | + """Sets the bc_row of this BcPDF417INFO. |
| 155 | +
|
| 156 | +
|
| 157 | + :param bc_row: The bc_row of this BcPDF417INFO. # noqa: E501 |
| 158 | + :type bc_row: int |
| 159 | + """ |
| 160 | + |
| 161 | + self._bc_row = bc_row |
| 162 | + |
| 163 | + @property |
| 164 | + def min_x(self): |
| 165 | + """Gets the min_x of this BcPDF417INFO. # noqa: E501 |
| 166 | +
|
| 167 | +
|
| 168 | + :return: The min_x of this BcPDF417INFO. # noqa: E501 |
| 169 | + :rtype: float |
| 170 | + """ |
| 171 | + return self._min_x |
| 172 | + |
| 173 | + @min_x.setter |
| 174 | + def min_x(self, min_x): |
| 175 | + """Sets the min_x of this BcPDF417INFO. |
| 176 | +
|
| 177 | +
|
| 178 | + :param min_x: The min_x of this BcPDF417INFO. # noqa: E501 |
| 179 | + :type min_x: float |
| 180 | + """ |
| 181 | + |
| 182 | + self._min_x = min_x |
| 183 | + |
| 184 | + @property |
| 185 | + def min_y(self): |
| 186 | + """Gets the min_y of this BcPDF417INFO. # noqa: E501 |
| 187 | +
|
| 188 | +
|
| 189 | + :return: The min_y of this BcPDF417INFO. # noqa: E501 |
| 190 | + :rtype: float |
| 191 | + """ |
| 192 | + return self._min_y |
| 193 | + |
| 194 | + @min_y.setter |
| 195 | + def min_y(self, min_y): |
| 196 | + """Sets the min_y of this BcPDF417INFO. |
| 197 | +
|
| 198 | +
|
| 199 | + :param min_y: The min_y of this BcPDF417INFO. # noqa: E501 |
| 200 | + :type min_y: float |
| 201 | + """ |
| 202 | + |
| 203 | + self._min_y = min_y |
| 204 | + |
| 205 | + def to_dict(self): |
| 206 | + """Returns the model properties as a dict""" |
| 207 | + result = {} |
| 208 | + |
| 209 | + for attr, _ in six.iteritems(self.openapi_types): |
| 210 | + value = getattr(self, attr) |
| 211 | + if isinstance(value, list): |
| 212 | + result[attr] = list(map( |
| 213 | + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, |
| 214 | + value |
| 215 | + )) |
| 216 | + elif hasattr(value, "to_dict"): |
| 217 | + result[attr] = value.to_dict() |
| 218 | + elif isinstance(value, dict): |
| 219 | + result[attr] = dict(map( |
| 220 | + lambda item: (item[0], item[1].to_dict()) |
| 221 | + if hasattr(item[1], "to_dict") else item, |
| 222 | + value.items() |
| 223 | + )) |
| 224 | + else: |
| 225 | + result[attr] = value |
| 226 | + |
| 227 | + return result |
| 228 | + |
| 229 | + def to_str(self): |
| 230 | + """Returns the string representation of the model""" |
| 231 | + return pprint.pformat(self.to_dict()) |
| 232 | + |
| 233 | + def __repr__(self): |
| 234 | + """For `print` and `pprint`""" |
| 235 | + return self.to_str() |
| 236 | + |
| 237 | + def __eq__(self, other): |
| 238 | + """Returns true if both objects are equal""" |
| 239 | + if not isinstance(other, BcPDF417INFO): |
| 240 | + return False |
| 241 | + |
| 242 | + return self.to_dict() == other.to_dict() |
| 243 | + |
| 244 | + def __ne__(self, other): |
| 245 | + """Returns true if both objects are not equal""" |
| 246 | + if not isinstance(other, BcPDF417INFO): |
| 247 | + return True |
| 248 | + |
| 249 | + return self.to_dict() != other.to_dict() |
0 commit comments