Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

balloon_id is empty #5

Open
TimmyBest opened this issue Oct 12, 2022 · 0 comments
Open

balloon_id is empty #5

TimmyBest opened this issue Oct 12, 2022 · 0 comments

Comments

@TimmyBest
Copy link

It is empty in the database and of course empty when printed in debug when running on live device.
Screenshot 2022-10-12 at 23 07 00

A question is how does this work...?

 public bool Equals(BalloonData b) {
        if (b is null) return false;
        // If run-time types are not exactly the same, return false.
        if (this.GetType() != b.GetType()) return false;
        // Optimization for a common success case.
        if (System.Object.ReferenceEquals(this, b)) return true;
        if (b.balloon_id == null || b.balloon_id.Length < 1 || 
            this.balloon_id == null || this.balloon_id.Length < 1) {
            return false;
        }
        return b.balloon_id == this.balloon_id;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant