Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.
Closed
13 changes: 13 additions & 0 deletions Sources/WordPressKitModels/RemoteUser.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Foundation

@objcMembers public class RemoteUser: NSObject {
public var userID: NSNumber?
public var username: String?
public var email: String?
public var displayName: String?
public var primaryBlogID: NSNumber?
public var avatarURL: String?
public var dateCreated: Date?
public var emailVerified: Bool = false
public var linkedUserID: NSNumber?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original properties in the original Objective-C code are null_unspecified or implicitly unwrapped optional. I can keep the original code and make the new properties IUO, too. But that does not feel right.

The new code now uses optional, which means the app will need to update their codebase to deal with the new optional properties instead of IUO properties.

}
5 changes: 0 additions & 5 deletions Sources/WordPressKitObjC/RemoteUser.m

This file was deleted.

2 changes: 1 addition & 1 deletion Sources/WordPressKitObjC/include/AccountServiceRemote.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#import <Foundation/Foundation.h>
#import "RemoteUser.h"

@class RemoteUser;
@class WPAccount;

static NSString * const AccountServiceRemoteErrorDomain = @"AccountServiceErrorDomain";
Expand Down
15 changes: 0 additions & 15 deletions Sources/WordPressKitObjC/include/RemoteUser.h

This file was deleted.

1 change: 0 additions & 1 deletion Sources/WordPressKitObjC/include/WordPressKit.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ FOUNDATION_EXPORT const unsigned char WordPressKitVersionString[];
#import "RemoteSourcePostAttribution.h"
#import "RemoteTaxonomyPaging.h"
#import "RemoteTheme.h"
#import "RemoteUser.h"

#import "NSString+MD5.h"

Expand Down