# ======== Projects ========
# 1) -----------
#    name: LHC@home
#    master URL: https://lhcathome.cern.ch/lhcathome/
#    user_name: WickedJack
#    team_name: 
#    resource share: 100.000000
#    user_total_credit: 412.990429
#    user_expavg_credit: 22.766969
#    host_total_credit: 412.990429
#    host_expavg_credit: 25.140667
#    nrpc_failures: 0
#    master_fetch_failures: 0
#    master fetch pending: no
#    scheduler RPC pending: no
#    trickle upload pending: no
#    attached via Account Manager: no
#    ended: no
#    suspended via GUI: no
#    don't request more work: no
#    disk usage: 42.67MB
#    last RPC: Tue Apr 23 11:23:53 2024
#    project files downloaded: 0.000000

from boinc_components.boinc_project_gui_url import BoincProjectGuiUrl

class BoincProject:
    def __init__(
            self, 
            name,
            master_url,
            user_name,
            team_name,
            resource_share,
            user_total_credit,
            user_exponential_average_credit,
            host_total_credit,
            host_exponential_average_credit,
            nrpc_failures,
            master_fetch_failures,
            master_fetch_pending,
            scheduler_rpc_pending,
            trickle_upload_pending,
            attached_via_account_manager,
            ended,
            suspended_via_gui,
            dont_request_more_work,
            disk_usage,
            last_rpc,
            project_files_downloaded,
            gui_urls
        ):
        self.name = name
        self.master_url = master_url
        self.user_name = user_name
        self.team_name = team_name
        self.resource_share = resource_share
        self.user_total_credit = user_total_credit
        self.user_exponential_average_credit = user_exponential_average_credit
        self.host_total_credit = host_total_credit
        self.host_exponential_average_credit = host_exponential_average_credit
        self.nrpc_failures = nrpc_failures
        self.master_fetch_failures = master_fetch_failures
        self.master_fetch_pending = master_fetch_pending
        self.scheduler_rpc_pending = scheduler_rpc_pending
        self.trickle_upload_pending = trickle_upload_pending
        self.attached_via_account_manager = attached_via_account_manager
        self.ended = ended
        self.suspended_via_gui = suspended_via_gui
        self.dont_request_more_work = dont_request_more_work
        self.disk_usage = disk_usage
        self.last_rpc = last_rpc
        self.project_files_downloaded = project_files_downloaded
        self.gui_urls = gui_urls
