Example #1
0
 public static IPlayerCoPrx read(Ice.InputStream istr)
 {
     Ice.ObjectPrx proxy = istr.readProxy();
     if (proxy != null)
     {
         IPlayerCoPrxHelper result = new IPlayerCoPrxHelper();
         result.iceCopyFrom(proxy);
         return(result);
     }
     return(null);
 }
Example #2
0
            public static IPlayerCoPrx uncheckedCast(Ice.ObjectPrx b, string f)
            {
                if (b == null)
                {
                    return(null);
                }
                Ice.ObjectPrx      bb = b.ice_facet(f);
                IPlayerCoPrxHelper h  = new IPlayerCoPrxHelper();

                h.iceCopyFrom(bb);
                return(h);
            }
Example #3
0
            public static IPlayerCoPrx uncheckedCast(Ice.ObjectPrx b)
            {
                if (b == null)
                {
                    return(null);
                }
                IPlayerCoPrx r = b as IPlayerCoPrx;

                if (r == null)
                {
                    IPlayerCoPrxHelper h = new IPlayerCoPrxHelper();
                    h.iceCopyFrom(b);
                    r = h;
                }
                return(r);
            }
Example #4
0
            public static IPlayerCoPrx checkedCast(Ice.ObjectPrx b, _System.Collections.Generic.Dictionary <string, string> ctx)
            {
                if (b == null)
                {
                    return(null);
                }
                IPlayerCoPrx r = b as IPlayerCoPrx;

                if ((r == null) && b.ice_isA(ice_staticId(), ctx))
                {
                    IPlayerCoPrxHelper h = new IPlayerCoPrxHelper();
                    h.iceCopyFrom(b);
                    r = h;
                }
                return(r);
            }
Example #5
0
 public static IPlayerCoPrx checkedCast(Ice.ObjectPrx b, string f, _System.Collections.Generic.Dictionary <string, string> ctx)
 {
     if (b == null)
     {
         return(null);
     }
     Ice.ObjectPrx bb = b.ice_facet(f);
     try
     {
         if (bb.ice_isA(ice_staticId(), ctx))
         {
             IPlayerCoPrxHelper h = new IPlayerCoPrxHelper();
             h.iceCopyFrom(bb);
             return(h);
         }
     }
     catch (Ice.FacetNotExistException)
     {
     }
     return(null);
 }
Example #6
0
 public static IPlayerCoPrx checkedCast(Ice.ObjectPrx b, string f)
 {
     if (b == null)
     {
         return(null);
     }
     Ice.ObjectPrx bb = b.ice_facet(f);
     try
     {
         if (bb.ice_isA(ice_staticId()))
         {
             IPlayerCoPrxHelper h = new IPlayerCoPrxHelper();
             h.iceCopyFrom(bb);
             return(h);
         }
     }
     catch (Ice.FacetNotExistException)
     {
     }
     return(null);
 }