Exemple #1
0
 private void init(RestClient restClient, String apiKey)
 {
     packageService            = new PackageService(restClient, this.baseUrl, jsonSerializerSettings);
     reportService             = new ReportService(restClient, this.baseUrl, jsonSerializerSettings);
     systemService             = new SystemService(restClient, this.baseUrl, jsonSerializerSettings);
     signingService            = new SigningService(restClient, this.baseUrl, jsonSerializerSettings);
     signingStyleService       = new SigningStyleService(restClient, this.baseUrl, jsonSerializerSettings);
     signerVerificationService = new SignerVerificationService(restClient, this.baseUrl, jsonSerializerSettings);
     signatureImageService     = new SignatureImageService(restClient, this.baseUrl, jsonSerializerSettings);
     sessionService            = new SessionService(apiKey, this.baseUrl);
     fieldSummaryService       = new FieldSummaryService(new FieldSummaryApiClient(apiKey, this.baseUrl));
     auditService                 = new AuditService(apiKey, this.baseUrl);
     eventNotificationService     = new EventNotificationService(new EventNotificationApiClient(restClient, this.baseUrl, jsonSerializerSettings));
     customFieldService           = new CustomFieldService(new CustomFieldApiClient(restClient, this.baseUrl, jsonSerializerSettings));
     groupService                 = new GroupService(new GroupApiClient(restClient, this.baseUrl, jsonSerializerSettings));
     accountService               = new AccountService(new AccountApiClient(restClient, this.baseUrl, jsonSerializerSettings));
     approvalService              = new ApprovalService(new ApprovalApiClient(restClient, this.baseUrl, jsonSerializerSettings));
     reminderService              = new ReminderService(new ReminderApiClient(restClient, this.baseUrl, jsonSerializerSettings));
     templateService              = new TemplateService(new TemplateApiClient(restClient, this.baseUrl, jsonSerializerSettings), packageService);
     authenticationTokenService   = new AuthenticationTokenService(restClient, this.baseUrl);
     attachmentRequirementService = new AttachmentRequirementService(restClient, this.baseUrl, jsonSerializerSettings);
     layoutService                = new LayoutService(new LayoutApiClient(restClient, this.baseUrl, jsonSerializerSettings));
     qrCodeService                = new QRCodeService(new QRCodeApiClient(restClient, this.baseUrl, jsonSerializerSettings));
     authenticationService        = new AuthenticationService(this.webpageUrl);
 }