public IDictionary <string, object> GetTagById(int id) { Tag t = tag_store.GetTagById(id); if (t == null) { throw new DBusException("Tag with id {0} does not exist.", id); } return(CreateDictFromTag(t)); }
public Face(uint id, uint ph, uint tg, Gdk.Rectangle r) : base(id) { TagStore tag_store = FSpot.Core.Database.Tags; rect = r; photo_id = ph; tag_id = tg; tag = tag_store.GetTagById((int)tag_id); }