Examples of AssetType


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

    @Test
    public void testGetSetLastModified() throws Exception {
        // Arrange
        Date expectedLastModified = new Date();
        AssetInfo assetInfo = new AssetInfo(null,
                new AssetType().setLastModified(expectedLastModified));

        // Act
        Date actualLastModified = assetInfo.getLastModified();

        // Assert
View Full Code Here

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

    @Test
    public void testGetSetAlternateId() {
        // Arrange
        String expectedAlternateId = "testAlternateId";
        AssetInfo assetInfo = new AssetInfo(null,
                new AssetType().setAlternateId(expectedAlternateId));

        // Act
        String actualAlternateId = assetInfo.getAlternateId();

        // Assert
View Full Code Here

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

    @Test
    public void testGetSetName() {
        // Arrange
        String expectedName = "testName";
        AssetInfo assetInfo = new AssetInfo(null,
                new AssetType().setName(expectedName));

        // Act
        String actualName = assetInfo.getName();

        // Assert
View Full Code Here

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

    public void testGetSetOptions() {
        // Arrange

        AssetOption expectedOptions = AssetOption.None;
        AssetInfo assetInfo = new AssetInfo(null,
                new AssetType().setOptions(expectedOptions.getCode()));

        // Act
        AssetOption actualOptions = assetInfo.getOptions();

        // Assert
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.types.Enums.AssetType

                    folder.OwnerID = descFolder.get("agent_id").asUUID();
                    folder.ParentUUID = descFolder.get("parent_id").asUUID();
                    folder.Name = descFolder.get("name").asString();
                    folder.Version = descFolder.get("version").asInteger();
                    AssetType a;

                    folder.PreferredType = AssetType.get((byte)descFolder.get("type_default").asInteger());
                  }

                  // Fetch descendent items
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.types.Enums.AssetType

   
              // In practice this appears to only be used for folders
              UUID itemID = UUID.Zero;
              UUID parentID = UUID.Zero;
              String name = "";
              AssetType assetType = AssetType.Unknown;
   
              while (lineNum < lines.length)
              {
                if (ParseLine(lines[lineNum++], key, value))
                {
                  if (key[0].equals("{"))
                  {
                    continue;
                  }
                  else if (key[0].equals("}"))
                  {
                    break;
                  }
                  else if (key[0].equals("obj_id"))
                  {
                    itemID= UUID.Parse(value[0]);
                  }
                  else if (key[0].equals("parent_id"))
                  {
                    parentID= UUID.Parse(value[0]);
                  }
                  else if (key[0].equals("type"))
                  {
                    assetType = Utils.StringToAssetType(value[0]);
                  }
                  else if (key[0].equals("name"))
                  {
                    name = value[0].substring(0, value[0].indexOf('|'));
                  }
                }
              }
   
              if (assetType == AssetType.Folder)
              {
                InventoryFolder folder = new InventoryFolder(itemID);
                folder.Name = name;
                folder.ParentUUID = parentID;
   
                items.add(folder);
              }
              else
              {
                InventoryItem item = new InventoryItem(itemID);
                item.Name = name;
                item.ParentUUID = parentID;
                item.AssetType = assetType;
   
                items.add(item);
              }
   
              //endregion inv_object
            }
            else if (key.equals("inv_item"))
            {
              //region inv_item
   
              // Any inventory item that links to an assetID, has permissions, etc
              UUID itemID = UUID.Zero;
              UUID assetID = UUID.Zero;
              UUID parentID = UUID.Zero;
              UUID creatorID = UUID.Zero;
              UUID ownerID = UUID.Zero;
              UUID lastOwnerID = UUID.Zero;
              UUID groupID = UUID.Zero;
              boolean groupOwned = false;
              String name = "";
              String desc = "";
              AssetType assetType = AssetType.Unknown;
              InventoryType inventoryType = InventoryType.Unknown;
              Date creationDate = Utils.Epoch;
              //uint
              long flags = 0;
              Permissions perms = Permissions.NoPermissions;
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.types.Enums.AssetType

    if (onInventoryObjectOffered != null &&
        (e.getIM().Dialog == InstantMessageDialog.InventoryOffered
        || e.getIM().Dialog == InstantMessageDialog.TaskInventoryOffered))
    {
      AssetType type = AssetType.Unknown;
      UUID objectID = UUID.Zero;
      boolean fromTask = false;

      if (e.getIM().Dialog == InstantMessageDialog.InventoryOffered)
      {
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.types.Enums.AssetType

            UUID uuid;
            uuid = UUID.Parse(filename.substring(0, filename.length() - extension.length()));

            if (ArchiveConstants.EXTENSION_TO_ASSET_TYPE.containsKey(extension))
            {
                AssetType assetType = ArchiveConstants.EXTENSION_TO_ASSET_TYPE.get(extension);
                Asset asset = null;

                switch (assetType)
                {
                    case Animation:
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.types.Enums.AssetType

                    Permissions permissions = Permissions.NoPermissions;
                    int salePrice = 0;
                    SaleType saleType = SaleType.Not;
                    UUID parentUUID = UUID.Zero;
                    UUID assetUUID = UUID.Zero;
                    AssetType assetType = AssetType.Unknown;
                    InventoryType inventoryType = InventoryType.Unknown;
                    //uint
                    long flags = 0;
                    String name = "";
                    String description = "";
View Full Code Here

Examples of org.apache.tapestry.spec.AssetType

        String assetName,
        IComponent component,
        IAssetSpecification spec,
        IResourceLocation specificationLocation)
    {
        AssetType type = spec.getType();
        String path = spec.getPath();
        ILocation location = spec.getLocation();

        if (type == AssetType.EXTERNAL)
            return new ExternalAsset(path, location);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.