Ejemplo n.º 1
0
        private bool HasCapability(ItemCapabilityType type)
        {
            ItemCapabilityQueryResult result =
                ExecuteCapabilityQuery(new ItemCapabilityQuery(
                                           ItemCapabilityQuery.ItemCapabilityQueryType.HasCapability, type));

            if (result.ResultStatus == ItemCapabilityQueryResult.ItemCapabilityQueryResultType.True)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
        private ItemCapability[] GetCapability(ItemCapabilityType type)
        {
            ItemCapabilityQueryResult result =
                ExecuteCapabilityQuery(new ItemCapabilityQuery(
                                           ItemCapabilityQuery.ItemCapabilityQueryType.GetCapability, type));

            if (result.ResultStatus == ItemCapabilityQueryResult.ItemCapabilityQueryResultType.Success)
            {
                return(result.Capabilities);
            }
            else
            {
                return(null);
            }
        }
Ejemplo n.º 3
0
 private bool HasCapability(ItemCapabilityType type)
 {
     ItemCapabilityQueryResult result =
         ExecuteCapabilityQuery(new ItemCapabilityQuery(
                                    ItemCapabilityQuery.ItemCapabilityQueryType.HasCapability, type));
     if (result.ResultStatus == ItemCapabilityQueryResult.ItemCapabilityQueryResultType.True)
         return true;
     else
         return false;
 }
Ejemplo n.º 4
0
 private ItemCapability[] GetCapability(ItemCapabilityType type)
 {
     ItemCapabilityQueryResult result =
         ExecuteCapabilityQuery(new ItemCapabilityQuery(
                                    ItemCapabilityQuery.ItemCapabilityQueryType.GetCapability, type));
     if (result.ResultStatus == ItemCapabilityQueryResult.ItemCapabilityQueryResultType.Success)
         return result.Capabilities;
     else
         return null;
 }
Ejemplo n.º 5
0
 public ItemCapabilityQuery(ItemCapabilityQueryType _queryType, ItemCapabilityType _capabilityType)
 {
     queryType = _queryType;
     capabilityType = _capabilityType;
 }
Ejemplo n.º 6
0
 public ItemCapabilityQuery(ItemCapabilityQueryType _queryType, ItemCapabilityType _capabilityType)
 {
     queryType      = _queryType;
     capabilityType = _capabilityType;
 }