Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kosyloa committed Jan 4, 2024
1 parent 253302a commit a5a8cfc
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 36 deletions.
8 changes: 4 additions & 4 deletions DXFeedFramework.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
64104FC32A210F2400D1FC41 /* EventCode+Native.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64104FC22A210F2400D1FC41 /* EventCode+Native.swift */; };
64104FC52A26059B00D1FC41 /* ConcurrentSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64104FC42A26059B00D1FC41 /* ConcurrentSet.swift */; };
64104FC72A2613BC00D1FC41 /* ConcurrentArray.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64104FC62A2613BC00D1FC41 /* ConcurrentArray.swift */; };
64104FC92A26298D00D1FC41 /* DXFeedSubcription.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64104FC82A26298D00D1FC41 /* DXFeedSubcription.swift */; };
64104FC92A26298D00D1FC41 /* DXFeedSubscription.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64104FC82A26298D00D1FC41 /* DXFeedSubscription.swift */; };
64104FCC2A2629D800D1FC41 /* NativeSubscription.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64104FCB2A2629D800D1FC41 /* NativeSubscription.swift */; };
64104FD32A277B2D00D1FC41 /* ListNative.swift in Sources */ = {isa = PBXBuildFile; fileRef = 64104FD22A277B2D00D1FC41 /* ListNative.swift */; };
64125E362A1F689A00FB32BA /* libDxFeedGraalNativeSdk.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 64125E352A1F689A00FB32BA /* libDxFeedGraalNativeSdk.dylib */; platformFilters = (macos, ); settings = {ATTRIBUTES = (Required, ); }; };
Expand Down Expand Up @@ -574,7 +574,7 @@
64104FC22A210F2400D1FC41 /* EventCode+Native.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "EventCode+Native.swift"; sourceTree = "<group>"; };
64104FC42A26059B00D1FC41 /* ConcurrentSet.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConcurrentSet.swift; sourceTree = "<group>"; };
64104FC62A2613BC00D1FC41 /* ConcurrentArray.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConcurrentArray.swift; sourceTree = "<group>"; };
64104FC82A26298D00D1FC41 /* DXFeedSubcription.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DXFeedSubcription.swift; sourceTree = "<group>"; };
64104FC82A26298D00D1FC41 /* DXFeedSubscription.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DXFeedSubscription.swift; sourceTree = "<group>"; };
64104FCB2A2629D800D1FC41 /* NativeSubscription.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NativeSubscription.swift; sourceTree = "<group>"; };
64104FCD2A2637EA00D1FC41 /* EventsTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EventsTest.swift; sourceTree = "<group>"; };
64104FD22A277B2D00D1FC41 /* ListNative.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListNative.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1609,7 +1609,7 @@
64656F662A1CCFC2006A0B19 /* DXPublisher.swift */,
64656F6C2A1CFB10006A0B19 /* DXEndpointState.swift */,
641BCBBB2A20ED8100FE23C2 /* DXEndpointListener.swift */,
64104FC82A26298D00D1FC41 /* DXFeedSubcription.swift */,
64104FC82A26298D00D1FC41 /* DXFeedSubscription.swift */,
64ACBCD82A279F7900032C53 /* DXEventListener.swift */,
6423E4642B445B92006B208D /* DXFeedTimeSeriesSubscription.swift */,
);
Expand Down Expand Up @@ -2367,7 +2367,7 @@
6423E4672B44613D006B208D /* NativeTimeSeriesSubscription.swift in Sources */,
6447A5E32A8F611700739CCF /* IObservableSubscription.swift in Sources */,
64A42F4E2B0B9FA4001C3ACC /* DXTimeZone.swift in Sources */,
64104FC92A26298D00D1FC41 /* DXFeedSubcription.swift in Sources */,
64104FC92A26298D00D1FC41 /* DXFeedSubscription.swift in Sources */,
64ABC1032AD9294D00904D78 /* OptionSaleMapper.swift in Sources */,
64104FD32A277B2D00D1FC41 /* ListNative.swift in Sources */,
649706862AD832860068FF88 /* Series+Ext.swift in Sources */,
Expand Down
12 changes: 6 additions & 6 deletions DXFeedFramework/Api/DXFeed.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ public class DXFeed {
/// [Javadoc](https://docs.dxfeed.com/dxfeed/api/com/dxfeed/api/DXFeed.html#createSubscription-java.lang.Class)
/// - Parameters:
/// - events: The list of event codes.
/// - Returns: ``DXFeedSubcription``
/// - Returns: ``DXFeedSubscription``
/// - Throws: ``GraalException``. Rethrows exception from Java., ``ArgumentException/argumentNil``
public func createSubscription(_ events: [EventCode]) throws -> DXFeedSubcription {
return try DXFeedSubcription(native: native.createSubscription(events), events: events)
public func createSubscription(_ events: [EventCode]) throws -> DXFeedSubscription {
return try DXFeedSubscription(native: native.createSubscription(events), events: events)
}
/// Creates new subscription for a one event type that is attached to this feed.
///
/// [Javadoc](https://docs.dxfeed.com/dxfeed/api/com/dxfeed/api/DXFeed.html#createSubscription-java.lang.Class)
/// - Parameters:
/// - event: event code
/// - Returns: ``DXFeedSubcription``
/// - Returns: ``DXFeedSubscription``
/// - Throws: GraalException. Rethrows exception from Java.
public func createSubscription(_ event: EventCode) throws -> DXFeedSubcription {
return try DXFeedSubcription(native: native.createSubscription(event), events: [event])
public func createSubscription(_ event: EventCode) throws -> DXFeedSubscription {
return try DXFeedSubscription(native: native.createSubscription(event), events: [event])
}

public func createTimeSeriesSubscription(_ events: [EventCode]) throws -> DXFeedTimeSeriesSubscription {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation
/// Subscription for a set of symbols and event types.
///
/// [Read it first Javadoc](https://docs.dxfeed.com/dxfeed/api/com/dxfeed/api/DXFeedSubscription.html)
public class DXFeedSubcription {
public class DXFeedSubscription {
/// Subscription native wrapper.
private let native: NativeSubscription
/// List of event types associated with this ``DXFeedSubscription``
Expand Down Expand Up @@ -91,7 +91,7 @@ public class DXFeedSubcription {
}
}

extension DXFeedSubcription: DXEventListener {
extension DXFeedSubscription: DXEventListener {
public func receiveEvents(_ events: [MarketEvent]) {
listeners.reader { items in
let enumerator = items.objectEnumerator()
Expand All @@ -102,8 +102,8 @@ extension DXFeedSubcription: DXEventListener {
}
}

extension DXFeedSubcription: Hashable {
public static func == (lhs: DXFeedSubcription, rhs: DXFeedSubcription) -> Bool {
extension DXFeedSubscription: Hashable {
public static func == (lhs: DXFeedSubscription, rhs: DXFeedSubscription) -> Bool {
return lhs.hashValue == rhs.hashValue
}

Expand All @@ -112,7 +112,7 @@ extension DXFeedSubcription: Hashable {
}
}

extension DXFeedSubcription: IObservableSubscription {
extension DXFeedSubscription: IObservableSubscription {
public func isClosed() -> Bool {
return native.isClosed()
}
Expand Down
8 changes: 4 additions & 4 deletions DXFeedFramework/Api/DXFeedTimeSeriesSubscription.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@

import Foundation

/// Extends ``DXFeedSubcription`` to conveniently subscribe to time-series of
/// events for a set of symbols and event types.
/// Extends ``DXFeedSubscription`` to conveniently subscribe to time-series of
/// events for a set of symbols and event types.
///
/// This class decorates symbols
/// that are passed to xxxSymbols methods in ``DXFeedSubcription``
/// that are passed to xxxSymbols methods in ``DXFeedSubscription``
/// by wrapping them into ``TimeSeriesSubscriptionSymbol`` instances with
/// the current value of fromTime property.
///
/// Only events that implement ``ITimeSeriesEvent`` interface can be
/// subscribed to with DXFeedTimeSeriesSubscription``.
public class DXFeedTimeSeriesSubscription: DXFeedSubcription {
public class DXFeedTimeSeriesSubscription: DXFeedSubscription {
/// Subscription native wrapper.
private let native: NativeTimeSeriesSubscription?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Foundation

/// Represents subscription to a specific source of indexed events.
///
/// Instances of this class can be used with ``DXFeedSubcription``
/// Instances of this class can be used with ``DXFeedSubscription``
/// to specify subscription to a particular source of indexed events.
/// By default, when subscribing to indexed events by their event symbol object,
/// the subscription is performed to all supported sources.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public protocol ObservableSubscriptionChangeListener: AnyObject {
func symbolsRemoved(symbols: Set<AnyHashable>)

/// Invoked after subscription is closed or when this listener is
/// ``DXFeedSubcription/removeChangeListener(_:)`` from the subscription.
/// ``DXFeedSubscription/removeChangeListener(_:)`` from the subscription.
/// ``DXPublisher`` ``DXPublisher/getSubscription(_:)`` is considered to be closed
/// when the corresponding ``DXEndpoint`` is ``DXEndpoint/close()``.
/// Default implementation is empty.
Expand Down
2 changes: 1 addition & 1 deletion DXFeedFramework/Api/Osub/String+Symbol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation

/// String extends Symbol protocol for using inside ``DXFeedSubcription``
/// String extends Symbol protocol for using inside ``DXFeedSubscription``
extension String: Symbol {
public var stringValue: String {
return description
Expand Down
2 changes: 1 addition & 1 deletion DXFeedFramework/Api/Osub/Symbol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Foundation

/// Protocol for implement your custom symbol
///
/// Dervied from this procol can be used with ``DXFeedSubcription`` to specify subscription
/// Dervied from this procol can be used with ``DXFeedSubscription`` to specify subscription

public protocol Symbol {
/// Custom symbol has to return string representation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import Foundation
/// Represents subscription to time-series of events.
///
/// Instances of this class can be used with ``DXFeedSubcription`` to specify subscription
/// Instances of this class can be used with ``DXFeedSubscription`` to specify subscription
/// for time series events from a specific time. By default, subscribing to time-series events by
/// their event symbol object, the subscription is performed to a stream of new events as they happen only.
///
Expand Down
4 changes: 2 additions & 2 deletions DXFeedFramework/Api/Osub/WildcardSymbol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import Foundation
/// Represents [wildcard] subscription to all events of the specific event type.
///
/// The ``all`` constant can be added to any ``DXFeedSubcription`` instance with ``DXFeedSubcription/addSymbols(_:)-32ill`` method
/// The ``all`` constant can be added to any ``DXFeedSubscription`` instance with ``DXFeedSubscription/addSymbols(_:)-32ill`` method
/// to the effect of subscribing to all possible event symbols. The corresponding subscription will start
/// receiving all published events of the corresponding types.
///
Expand All @@ -28,7 +28,7 @@ public class WildcardSymbol: Symbol {
/// is disabled by default in upstream feed configuration.
/// Make that sure you have adequate resources and understand the impact before using it.
/// It can be used for low-frequency events only (like Forex quotes), because each instance
/// of ``DXFeedSubcription`` processes events in a single thread
/// of ``DXFeedSubscription`` processes events in a single thread
/// and there is no provision to load-balance wildcard
/// subscription amongst multiple threads.
public static let all = WildcardSymbol(symbol: reservedPrefix)
Expand Down
4 changes: 2 additions & 2 deletions DXFeedFramework/Events/Market/Candles/CandleSymbol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

import Foundation

/// Symbol that should be used with``DXFeedSubcription`` class
/// to subscribe for``Candle`` events.``DXFeedSubcription`` also accepts a string
/// Symbol that should be used with``DXFeedSubscription`` class
/// to subscribe for``Candle`` events.``DXFeedSubscription`` also accepts a string
/// representation of the candle symbol for subscription.
///
/// [For more details see](https://docs.dxfeed.com/dxfeed/api/com/dxfeed/event/candle/CandleSymbol.html)
Expand Down
2 changes: 1 addition & 1 deletion DXFeedFramework/Events/Market/Extra/IEventType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Foundation
///
/// [For more details see](https://docs.dxfeed.com/dxfeed/api/com/dxfeed/event/EventType.html)
public protocol IEventType {
/// Gets or sets event symbol that identifies this event type ``DXFeedSubcription``.
/// Gets or sets event symbol that identifies this event type ``DXFeedSubscription``.
///
/// [For more details see](https://docs.dxfeed.com/dxfeed/api/com/dxfeed/event/EventType.html#getEventSymbol--)
var eventSymbol: String { get set }
Expand Down
2 changes: 1 addition & 1 deletion DXFeedFrameworkTests/FeedTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import XCTest

final class FeedTest: XCTestCase {
func testInitializationWithNilNativeSubscription() {
XCTAssertThrowsError(try DXFeedSubcription(native: nil, events: [.quote])) { error in
XCTAssertThrowsError(try DXFeedSubscription(native: nil, events: [.quote])) { error in
// Assert
XCTAssertTrue(error is ArgumentException)
}
Expand Down
2 changes: 1 addition & 1 deletion Samples/LatencyTestApp/LatencyViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class LatencyViewController: UIViewController {
let numberFormatter = NumberFormatter()

private var endpoint: DXEndpoint?
private var subscription: DXFeedSubcription?
private var subscription: DXFeedSubscription?

var symbols = ["ETH/USD:GDAX"]
var blackHoleInt: Int64 = 0
Expand Down
2 changes: 1 addition & 1 deletion Samples/PertTestApp/PerfTestViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class PerfTestViewController: UIViewController {
}()

private var endpoint: DXEndpoint?
private var subscription: DXFeedSubcription?
private var subscription: DXFeedSubscription?

var blackHoleInt: Int64 = 0

Expand Down
4 changes: 2 additions & 2 deletions Samples/QuoteTableApp/QuoteTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import DXFeedFramework

class QuoteTableViewController: UIViewController {
private var endpoint: DXEndpoint?
private var subscription: DXFeedSubcription?
private var profileSubscription: DXFeedSubcription?
private var subscription: DXFeedSubscription?
private var profileSubscription: DXFeedSubscription?

var dataSource = [String: QuoteModel]()
var symbols = ["AAPL", "IBM", "MSFT", "EUR/CAD", "ETH/USD:GDAX", "GOOG", "BAC", "CSCO", "ABCE", "INTC", "PFE"]
Expand Down
2 changes: 1 addition & 1 deletion Samples/QuoteTableApp/QuoteViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import DXFeedFramework

class QuoteViewController: UIViewController {
private var endpoint: DXEndpoint?
private var subscription: DXFeedSubcription?
private var subscription: DXFeedSubscription?

@IBOutlet var connectButton: UIButton!
@IBOutlet var addressTextField: UITextField!
Expand Down
2 changes: 1 addition & 1 deletion Samples/Tools/SubscriptionUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import DXFeedFramework

class Subscription {
var endpoint: DXEndpoint?
var subscriptions = [DXFeedSubcription]()
var subscriptions = [DXFeedSubscription]()

// swiftlint:disable function_parameter_count
func createSubscription<O>(address: String,
Expand Down

0 comments on commit a5a8cfc

Please sign in to comment.