Exemplo n.º 1
0
    public static PacketWriter EnablePermission(HomePermission permission, bool enabled)
    {
        PacketWriter pWriter = PacketWriter.Of(SendOp.ResponseCube);

        pWriter.Write(ResponseCubePacketMode.EnablePermission);
        pWriter.Write(permission);
        pWriter.WriteBool(enabled);

        return(pWriter);
    }
Exemplo n.º 2
0
    public static PacketWriter SetPermission(HomePermission permission, byte setting)
    {
        PacketWriter pWriter = PacketWriter.Of(SendOp.ResponseCube);

        pWriter.Write(ResponseCubePacketMode.SetPermission);
        pWriter.Write(permission);
        pWriter.WriteByte(setting);

        return(pWriter);
    }
Exemplo n.º 3
0
        public static Packet EnablePermission(HomePermission permission, bool enabled)
        {
            PacketWriter pWriter = PacketWriter.Of(SendOp.RESPONSE_CUBE);

            pWriter.WriteEnum(ResponseCubePacketMode.EnablePermission);
            pWriter.WriteEnum(permission);
            pWriter.WriteBool(enabled);

            return(pWriter);
        }