how can i change "unavailable" status to "Offline" as it reads in Lync.

Sep 3, 2012 at 9:27 AM

Have changed the Availabilitytostatusconverter.cs but it wont actually change the text if the user is offline or "Unavailable".
any help would be great.
Thhanks.


using System.Collections.Generic;
using System.Linq;

namespace Lync.Widget.Service.Presence
{
    /// 

    /// A helper class to translate numeric Availability into a human readable status
    /// 

    public static class AvailabilityToStatusConverter
    {
       private static readonly List StatusAvailabilityRanges =
       new List { 
              new StatusAvailabilityRange { Begin = long.MinValue, End = -1, Status = "Invalid" },
              new StatusAvailabilityRange { Begin = 0, End = 2999, Status = "Away" }, //None
              new StatusAvailabilityRange { Begin = 3000, End = 4499, Status = "Available" },
              new StatusAvailabilityRange { Begin = 4500, End = 5999, Status = "Away" }, //IdleOnline
              new StatusAvailabilityRange { Begin = 6000, End = 7499, Status = "Busy" },
              new StatusAvailabilityRange { Begin = 7500, End = 8999, Status = "Away" }, //IdleBusy
              new StatusAvailabilityRange { Begin = 9000, End = 11999, Status = "Do Not Disturb" }, 
              new StatusAvailabilityRange { Begin = 12000, End = 14999, Status = "Be Right Back" },
              new StatusAvailabilityRange { Begin = 15000, End = 17999, Status = "Away" },
              new StatusAvailabilityRange { Begin = 18000, End = long.MaxValue, Status = "Offline" }, //Unavailable	
            };