#!/usr/bin/python class Release: def __init__(self, product, version, buildTarget, buildId, locale, channel, update): self.product = product self.version = version self.buildTarget = buildTarget self.buildId = buildId self.locale = locale self.channel = channel self.update = update def getProduct(self): return self.product def getVersion(self): return self.version def getBuildTarget(self): return self.buildTarget def getBuildId(self): return self.buildId def getLocale(self): return self.locale def getChannel(self): return self.channel def setUpdate(self, update): self.update = update def getUpdate(self): return self.update def getOsVersion(self): return 'test' def getDistribution(self): return 'test' def getDistributionVersion(self): return 'test' class Update: def __init__(self, type=None, version=None, appv=None, extv=None, detailsUrl=None, licenseUrl=None, complete_patch=None, partial_patch=None): self.type = type self.version = version self.appv = appv self.extv = extv self.detailsUrl = detailsUrl self.licenseUrl = licenseUrl self.complete_patch = complete_patch self.partial_patch = partial_patch def getType(self): return self.type def setType(self, type): self.type = type def getVersion(self): return self.version def setVersion(self, version): self.version = version def getAppVersion(self): return self.appv def setAppVersion(self, appv): self.appv = appv def setExtensionVersion(self, extv): self.extv = extv def getExtensionVersion(self): return self.extv def getDetailsUrl(self): return self.detailsUrl def setDetailsUrl(self, detailsUrl): self.detailsUrl = detailsUrl def getLicenseUrl(self): return self.licenseUrl def setLicenseUrl(self, licenseUrl): self.licenseUrl = licenseUrl def getCompletePatch(self): return self.complete_patch def setCompletePatch(self, complete_patch): self.complete_patch = complete_patch def getPartialPatch(self): return self.partial_patch def setPartialPatch(self, partial_patch): self.partial_patch = partial_patch class Patch: def __init__(self, type, url, hashFunction, hashValue, size, buildId): self.type = type self.url = url self.hashFunction = hashFunction self.hashValue = hashValue self.size = size self.buildId = buildId def getType(self): return self.type def getUrl(self): return self.url def getHashFunction(self): return self.hashFunction def getHashValue(self): return self.hashValue def getSize(self): return self.size def getBuildId(self): return self.buildId