Ejemplo n.º 1
0
        public override void Queue()
        {
            DispatchManager dm = Contact.DispatchManager;

            if (!dm.Exists <OutgoingFileTransfer> (Contact, Name))
            {
                IDictionary <string, object> properties = new Dictionary <string, object> ();
                properties.Add("Filename", Name);
                properties.Add("Description", "Telepathy extension for Banshee transfer");
                properties.Add("ContentType", ContentType);
                properties.Add("Size", (ulong)Key.Track.FileSize);

                dm.Request <OutgoingFileTransfer> (Contact, properties);
            }

            base.Queue();
        }