0 Replies Latest reply: Jul 24, 2009 3:28 AM by 711758 RSS

    Setting the attributes during call to subscribepresence

    711758
      Hi ,

      I am setting presentity ,correlator,interface,endpoint values.
      when I tried to set attribute values, i am getting exception as below

      the below code is giving compilation error at first line
      PresenceAttributeType pa = PresenceAttributeType.ACTIVITY;
      PresenceAttributeType[] pat = new PresenceAttributeType[]{pa};

      Type mismatch: cannot convert from PresenceAttributeType.Enum to PresenceAttributeType

      then I changed to below code, still i am getting compilation error at second line

      Enum pa = PresenceAttributeType.ACTIVITY;
      PresenceAttributeType[] pat = new PresenceAttributeType[]{pa};

      Type mismatch: cannot convert from PresenceAttributeType.Enum to PresenceAttributeType


      once above error is done, i want to set to below code

      presence.setAttributesArray(1,pat);

      i could not get out from this problem,is my way of settign attributes is correct
      if wrong, please suggest me how to set attributevalues to subscribepresence