Ejemplo n.º 1
0
 public void SetNinValue(HArrayOfValue value)
 {
     try
     {
         if (value == null)
             this.Remove("nin");
         else
             this["nin"] = value;
     }
     catch (Exception e)
     {
         Debug.WriteLine("{0} : Can not update the nin value attribute", e.ToString());
     }
 }
Ejemplo n.º 2
0
        private void setFilterBt_Click(object sender, RoutedEventArgs e)
        {
            HCondition filter = new HCondition();
            HArrayOfValue valueArray = new HArrayOfValue();
            valueArray.SetName("publisher");
            JArray ja = new JArray();
            ja.Add("urn:localhost:u1");
            ja.Add("urn:localhost:u2");
            valueArray.SetValues(ja);
            filter.SetInValue(valueArray);

            Debug.WriteLine("\n-- set filer --");
            Debug.WriteLine(filter);
            Debug.WriteLine("---------------\n");
          
            //Remove the filter.
            //HCondition filter = new HCondition(JObject.Parse("{}")); 
            client.SetFilter(filter, callback);
        }
Ejemplo n.º 3
0
 public HArrayOfValue GetNinValue()
 {
     HArrayOfValue value = null;
     try
     {
         value = new HArrayOfValue(JObject.Parse(this["nin"].ToString()));
     }
     catch (Exception e)
     {
         Debug.WriteLine("{0} : Can not fetch the nin value attribute", e.ToString());
     }
     return value;
 }