Exemplo n.º 1
0
        public PingType(
            string name,
            bool includeClientId,
            bool sendIfEmpty,
            string[] reasonCodes
            )
        {
            handle = LibGleanFFI.glean_new_ping_type(
                name: name,
                include_client_id: Convert.ToByte(includeClientId),
                send_if_empty: Convert.ToByte(sendIfEmpty),
                reason: reasonCodes,
                reason_codes_len: reasonCodes == null ? 0 : reasonCodes.Length
                );

            this.name        = name;
            this.reasonCodes = reasonCodes;

            GleanInstance.RegisterPingType(this);
        }