Closed GoogleCodeExporter closed 9 years ago
The current method is to use the .GetStringValue() extension method:
string scopeUri = PlusService.Scopes.PlusMe.GetStringValue();
This design should probably be revisited so I am going to keep this bug open
for now.
Original comment by asky...@google.com
on 17 Sep 2011 at 8:26
The problem is that you can't override the .ToString() method. We don't have
that issue when using Enums for data input as the library manually checks for a
proper TypeConverter, and uses it if available.
Maybe the CodeGenerator create a nested static class "Scopes" instead, which
contains every scope as a constant?
Original comment by mlinder...@gmail.com
on 17 Sep 2011 at 8:57
Original comment by asky...@google.com
on 27 Oct 2011 at 5:40
Needs significant rework, moving to 1.2 beta for deeper consideration.
Original comment by asky...@google.com
on 5 Nov 2011 at 6:01
Issue 162 has been merged into this issue.
Original comment by asky...@google.com
on 5 Nov 2011 at 6:03
Original comment by asky...@google.com
on 25 Apr 2012 at 4:25
We should change the scopes enum to scopes class that contains strings with all
the scopes.
Original comment by pele...@google.com
on 6 Sep 2013 at 6:56
Original comment by pele...@google.com
on 6 Sep 2013 at 6:56
Original comment by pele...@google.com
on 14 Sep 2013 at 1:53
Original comment by pele...@google.com
on 3 Oct 2013 at 7:29
Original issue reported on code.google.com by
asky...@google.com
on 17 Sep 2011 at 8:22