Esempio n. 1
0
 public static int QoSMotionRankFromBandwidth(tmedia_bandwidth_level_t bw)
 {
     switch (bw)
     {
         case tmedia_bandwidth_level_t.tmedia_bl_low:
             {
                 return 1;
             }
         case tmedia_bandwidth_level_t.tmedia_bl_medium:
         default:
             {
                 return 2;
             }
         case tmedia_bandwidth_level_t.tmedia_bl_hight:
         case tmedia_bandwidth_level_t.tmedia_bl_unrestricted:
             {
                 return 4;
             }
     }
 }
Esempio n. 2
0
 public static String QoSBandwidthToString(tmedia_bandwidth_level_t bl)
 {
     switch (bl)
     {
         case tmedia_bandwidth_level_t.tmedia_bl_hight:
         default:
             return Configuration.QOS_BANDWIDTH_HIGH;
         case tmedia_bandwidth_level_t.tmedia_bl_low:
             return Configuration.QOS_BANDWIDTH_LOW;
         case tmedia_bandwidth_level_t.tmedia_bl_medium:
             return QOS_BANDWIDTH_MEDIUM;
     }
 }