# Path: python_anticaptcha/fields.py
# class BaseField(object):
#     label = None
#     labelHint = None
# 
#     def serialize(self, name=None):
#         data = {}
#         if self.label:
#             data["label"] = self.label or False
#         if self.labelHint:
#             data["labelHint"] = self.labelHint or False
#         return data


import base64
from .fields import BaseField
    websiteURL = None
    websiteKey = None

    def __init__(self, website_url, website_key, *args, **kwargs):
        self.websiteURL = website_url
        self.websiteKey = website_key
        super(HCaptchaTaskProxyless, self).__init__(*args, **kwargs)

    def serialize(self, **result):
        data = super(HCaptchaTaskProxyless, self).serialize(**result)
        data["type"] = self.type
        data["websiteURL"] = self.websiteURL
        data["websiteKey"] = self.websiteKey
        return data


class HCaptchaTask(ProxyMixin, HCaptchaTaskProxyless):
    type = "HCaptchaTask"


class SquareNetTask(BaseTask):
    type = "SquareNetTask"
    fp = None
    objectName = None
    rowsCount = None
    columnsCount = None

    def __init__(self, fp, objectName, rowsCount, columnsCount):
        self.fp = fp
        self.objectName = objectName

# Path: python_anticaptcha/fields.py
# class BaseField(object):
#     label = None
#     labelHint = None
# 
#     def serialize(self, name=None):
#         data = {}
#         if self.label:
#             data["label"] = self.label or False
#         if self.labelHint:
#             data["labelHint"] = self.labelHint or False
#         return data


# Path: python_anticaptcha/tasks.py
import base64
from .fields import BaseField

    websiteURL = None
    websiteKey = None

    def __init__(self, website_url, website_key, *args, **kwargs):
        self.websiteURL = website_url
        self.websiteKey = website_key
        super(HCaptchaTaskProxyless, self).__init__(*args, **kwargs)

    def serialize(self, **result):
        data = super(HCaptchaTaskProxyless, self).serialize(**result)
        data["type"] = self.type
        data["websiteURL"] = self.websiteURL
        data["websiteKey"] = self.websiteKey
        return data


class HCaptchaTask(ProxyMixin, HCaptchaTaskProxyless):
    type = "HCaptchaTask"


class SquareNetTask(BaseTask):
    type = "SquareNetTask"
    fp = None
    objectName = None
    rowsCount = None
    columnsCount = None

    def __init__(self, fp, objectName, rowsCount, columnsCount):
        self.fp = fp
        self.objectName = objectName

        self.rowsCount = rowsCount