Exemple #1
0
        public Task <ResponseModel <ContentUploadToken, ContentUploadResponseCode> > Create(ContentUploadTokenFactoryContext context)
        {
            switch (context.ContentType)
            {
            case UserContentType.World:
                return(ContentClient.RequestUpdateExistingWorld(ContentDataDefinition.ContentId));

            case UserContentType.Avatar:
                return(ContentClient.RequestUpdateExistingAvatar(ContentDataDefinition.ContentId));

            case UserContentType.Creature:
                return(ContentClient.RequestUpdateExistingCreature(ContentDataDefinition.ContentId));

            case UserContentType.GameObject:
                return(ContentClient.RequestUpdateExistingGameObjectModel(ContentDataDefinition.ContentId));

            default:
                throw new ArgumentOutOfRangeException();
            }
        }