Package com.microsoft.windowsazure.services.media.implementation.content

Examples of com.microsoft.windowsazure.services.media.implementation.content.JobNotificationSubscriptionType


            JobType jobType = new JobType();
            jobType.setName(creator.getName());
            jobType.setPriority(creator.getPriority());
            for (JobNotificationSubscription jobNotificationSubscription : creator
                    .getJobNotificationSubscription()) {
                JobNotificationSubscriptionType jobNotificationSubscriptionType = new JobNotificationSubscriptionType();
                jobNotificationSubscriptionType
                        .setNotificationEndPointId(jobNotificationSubscription
                                .getNotificationEndPointId());
                jobNotificationSubscriptionType
                        .setTargetJobState(jobNotificationSubscription
                                .getTargetJobState().getCode());
                jobType.addJobNotificationSubscriptionType(jobNotificationSubscriptionType);
            }
View Full Code Here


     * @return the job info
     */
    public JobInfo addJobNotificationSubscription(
            JobNotificationSubscription jobNotificationSubscription) {
        getContent().addJobNotificationSubscriptionType(
                new JobNotificationSubscriptionType()
                        .setNotificationEndPointId(
                                jobNotificationSubscription
                                        .getNotificationEndPointId())
                        .setTargetJobState(
                                jobNotificationSubscription.getTargetJobState()
View Full Code Here

    public void testGetSetNotificationEndPoint() {
        // Arrange
        String expectedNotificationEndPointId = "testNotificationEndPointId";
        JobNotificationSubscription expectedJobNotificationSubscription = new JobNotificationSubscription(
                expectedNotificationEndPointId, TargetJobState.All);
        JobNotificationSubscriptionType expectedJobNotificationSubscriptionType = new JobNotificationSubscriptionType();
        JobType expectedJobType = new JobType();
        expectedJobType
                .addJobNotificationSubscriptionType(expectedJobNotificationSubscriptionType
                        .setNotificationEndPointId(
                                expectedNotificationEndPointId)
                        .setTargetJobState(TargetJobState.All.getCode()));
        JobInfo jobInfo = new JobInfo(null, expectedJobType);
View Full Code Here

TOP

Related Classes of com.microsoft.windowsazure.services.media.implementation.content.JobNotificationSubscriptionType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.