Advertisement
Guest User

Untitled

a guest
May 27th, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 0.79 KB | None | 0 0
  1. foreach (var e in results)
  2.   {
  3.     var interaction_type = e.get_subject (0).get_interpretation ();
  4.     for (var i = 1; i < e.num_subjects (); i++)
  5.       {
  6.         var id = this._get_iid_from_event_metadata (e.get_subject (i).get_uri ());
  7.         this._personas.get (id).freeze_notify ();
  8.         this._increase_persona_counter (id, interaction_type, e);
  9.         ids.add (id);
  10.       }
  11.   }
  12. /* Allow notifications for personas with an interaction history */
  13. foreach (var id in ids)
  14.   {
  15.     var persona = this._personas.get (id);
  16.     persona.thaw_notify ();
  17.     persona.notify_property ("im-interaction-count");
  18.     persona.notify_property ("last-im-interaction-datetime");
  19.     persona.notify_property ("call-interaction-count");
  20.     persona.notify_property ("last-call-interaction-datetime");
  21.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement