The enum starts with lower case now. ( case publicProfile ) so you need to use . publicProfile rather than .PublicProfile , that may also be true of the loginResult, ...
Lee mas